I am using wordpress and have a rewrite rule working normal before when I share a post to facebook, however i found that facebook now captures only my homepage(http://www.example.com) no matter whatever the post i try to share.
So I checked the HTTP header and it returns 302 to my homepage. Actually it works normal when I browse the site with any browsers. Plsss kindly help
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Facebook Captures the url from it’s meta property og:url and you have to set this property in the head tag. If you set your article’s link properly with all required og properties then it’ll be posted with the accurate link. I think you should read the documentation at open graph key concepts.
My suggestion would be to stop all the heavy lifting and install WordPress SEO by Yoast. It has a built in Facebook Open Graph system.
wordpress seo