Changeset 1910288
- Timestamp:
- 07/17/2018 09:59:34 AM (8 years ago)
- Location:
- change-og-url-to-http
- Files:
-
- 2 edited
-
tags/1.0/README.txt (modified) (4 diffs)
-
trunk/README.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
change-og-url-to-http/tags/1.0/README.txt
r1909984 r1910288 16 16 This plugin helps you do just that. 17 17 18 If you use a SEO plugin like Yoast, the OG URL tag automatically reflects the HTTPS version for HTTPS URLs. This plugin adds a filter to the 'OG URL' output and changes it back to 'HTTP' for all existing posts/pages. New posts that you add after this plugin is activated will not be affected.18 For example, if you use a SEO plugin like Yoast, the OG URL tag automatically reflects the HTTPS version for HTTPS URLs. This plugin adds a filter to the 'OG URL' output and changes it back to 'HTTP' for all existing posts/pages. New posts that you add after this plugin is activated will not be affected. 19 19 20 20 Similary, the canonical URL tag remains unchanged as 'HTTPS'. Canonical tag is used by search engines like Google. So you are good when it comes to SEO. … … 31 31 This plugin only changes the 'OG URL' tags for posts that existed when this plugin is first installed. This way all new posts will have the regular OG URL tags with 'HTTPS'. 32 32 33 = Steps to make this work=33 == Steps to make this work == 34 34 35 35 You need to follow these steps in order for the plugin to work: … … 39 39 *Step 2:* If you are using a Cache plugin (eg: WP Super Cache), delete the cache. 40 40 41 *Step 3:* Exclude facebook bot from the HTTP to HTTPS redirect in your HTaccess file. 41 *Step 3:* Exclude facebook bot from the HTTP to HTTPS redirect in your HTaccess file. Here's an example: 42 42 43 *Step 4:* Force facebook to rescrape your URLs once again. Here's how you can do that: 43 RewriteEngine On 44 RewriteCond %{SERVER_PORT} 80 45 RewriteCond %{HTTP_USER_AGENT} !facebookexternalhit/[0-9] #exclude facebook bot 46 RewriteRule ^(.*)$ https://sitename.com/$1 [R=301,L] 47 48 The above rewrite rule excludes facebook bots from the redirect. 49 50 *Step 4:* Wait for 30 days for facebook to rescrape your pages. Your 'share count' will return when facebook rescrapes your page. 51 52 == Test to see if this works == 53 54 You can instantly check to see if you did everything right by forcing facebook to rescrape one or many of your pages. Here's how you can do that: 44 55 45 56 * Login to your facebook account and go to [Facebook debugger tool](https://developers.facebook.com/tools/debug/) … … 52 63 53 64 For detailed information on these steps, [check out this article](https://orbitingweb.com/blog/http-to-https-retain-facebook-likes/) 65 66 == Want any new features? == 67 68 Want any new features added to this plugin? Just send me an email. [You can find my email here.](https://orbitingweb.com/lets-get-in-touch/) 54 69 55 70 == Installation == -
change-og-url-to-http/trunk/README.txt
r1909984 r1910288 16 16 This plugin helps you do just that. 17 17 18 If you use a SEO plugin like Yoast, the OG URL tag automatically reflects the HTTPS version for HTTPS URLs. This plugin adds a filter to the 'OG URL' output and changes it back to 'HTTP' for all existing posts/pages. New posts that you add after this plugin is activated will not be affected.18 For example, if you use a SEO plugin like Yoast, the OG URL tag automatically reflects the HTTPS version for HTTPS URLs. This plugin adds a filter to the 'OG URL' output and changes it back to 'HTTP' for all existing posts/pages. New posts that you add after this plugin is activated will not be affected. 19 19 20 20 Similary, the canonical URL tag remains unchanged as 'HTTPS'. Canonical tag is used by search engines like Google. So you are good when it comes to SEO. … … 31 31 This plugin only changes the 'OG URL' tags for posts that existed when this plugin is first installed. This way all new posts will have the regular OG URL tags with 'HTTPS'. 32 32 33 = Steps to make this work=33 == Steps to make this work == 34 34 35 35 You need to follow these steps in order for the plugin to work: … … 39 39 *Step 2:* If you are using a Cache plugin (eg: WP Super Cache), delete the cache. 40 40 41 *Step 3:* Exclude facebook bot from the HTTP to HTTPS redirect in your HTaccess file. 41 *Step 3:* Exclude facebook bot from the HTTP to HTTPS redirect in your HTaccess file. Here's an example: 42 42 43 *Step 4:* Force facebook to rescrape your URLs once again. Here's how you can do that: 43 RewriteEngine On 44 RewriteCond %{SERVER_PORT} 80 45 RewriteCond %{HTTP_USER_AGENT} !facebookexternalhit/[0-9] #exclude facebook bot 46 RewriteRule ^(.*)$ https://sitename.com/$1 [R=301,L] 47 48 The above rewrite rule excludes facebook bots from the redirect. 49 50 *Step 4:* Wait for 30 days for facebook to rescrape your pages. Your 'share count' will return when facebook rescrapes your page. 51 52 == Test to see if this works == 53 54 You can instantly check to see if you did everything right by forcing facebook to rescrape one or many of your pages. Here's how you can do that: 44 55 45 56 * Login to your facebook account and go to [Facebook debugger tool](https://developers.facebook.com/tools/debug/) … … 52 63 53 64 For detailed information on these steps, [check out this article](https://orbitingweb.com/blog/http-to-https-retain-facebook-likes/) 65 66 == Want any new features? == 67 68 Want any new features added to this plugin? Just send me an email. [You can find my email here.](https://orbitingweb.com/lets-get-in-touch/) 54 69 55 70 == Installation ==
Note: See TracChangeset
for help on using the changeset viewer.