Plugin Directory

Changeset 1910288


Ignore:
Timestamp:
07/17/2018 09:59:34 AM (8 years ago)
Author:
inorbit
Message:

Read me text changes.

Location:
change-og-url-to-http
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • change-og-url-to-http/tags/1.0/README.txt

    r1909984 r1910288  
    1616This plugin helps you do just that.
    1717
    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.
     18For 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.
    1919
    2020Similary, 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.
     
    3131This 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'.
    3232
    33 = Steps to make this work =
     33== Steps to make this work ==
    3434
    3535You need to follow these steps in order for the plugin to work:
     
    3939*Step 2:* If you are using a Cache plugin (eg: WP Super Cache), delete the cache.
    4040
    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:
    4242
    43 *Step 4:* Force facebook to rescrape your URLs once again. Here's how you can do that:
     43RewriteEngine On
     44RewriteCond %{SERVER_PORT} 80
     45RewriteCond %{HTTP_USER_AGENT} !facebookexternalhit/[0-9] #exclude facebook bot
     46RewriteRule ^(.*)$ https://sitename.com/$1 [R=301,L]
     47
     48The 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
     54You 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:
    4455
    4556* Login to your facebook account and go to [Facebook debugger tool](https://developers.facebook.com/tools/debug/)
     
    5263
    5364For 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
     68Want 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/)
    5469
    5570== Installation ==
  • change-og-url-to-http/trunk/README.txt

    r1909984 r1910288  
    1616This plugin helps you do just that.
    1717
    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.
     18For 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.
    1919
    2020Similary, 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.
     
    3131This 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'.
    3232
    33 = Steps to make this work =
     33== Steps to make this work ==
    3434
    3535You need to follow these steps in order for the plugin to work:
     
    3939*Step 2:* If you are using a Cache plugin (eg: WP Super Cache), delete the cache.
    4040
    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:
    4242
    43 *Step 4:* Force facebook to rescrape your URLs once again. Here's how you can do that:
     43RewriteEngine On
     44RewriteCond %{SERVER_PORT} 80
     45RewriteCond %{HTTP_USER_AGENT} !facebookexternalhit/[0-9] #exclude facebook bot
     46RewriteRule ^(.*)$ https://sitename.com/$1 [R=301,L]
     47
     48The 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
     54You 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:
    4455
    4556* Login to your facebook account and go to [Facebook debugger tool](https://developers.facebook.com/tools/debug/)
     
    5263
    5364For 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
     68Want 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/)
    5469
    5570== Installation ==
Note: See TracChangeset for help on using the changeset viewer.