verdeandrea Posted May 14, 2018 Share Posted May 14, 2018 Hello girls and guys, i was trying to figure out why facebook was not reading the og tags on my page and i saw i get a 301 redirect if i curl my website (and also for facebook crawler) but i'm able to see the page correctly via browser. The website in on https. There was a redirect from http to https but i disabled it for now. I checked the .htaccess and i commented all the 301 redirect lines, still i get the 301 redirect. I'm trying to understand where the redirect is happening. Is there any file i should check other than .htaccess? Thanks! Link to comment Share on other sites More sharing options...
verdeandrea Posted May 14, 2018 Author Share Posted May 14, 2018 I'm checking some other projects too, and actually i see this behaviour in other projects. Is there some configuration or setting I'm missing? Link to comment Share on other sites More sharing options...
bernhard Posted May 14, 2018 Share Posted May 14, 2018 check your trailing slash option and see if that is the reason Link to comment Share on other sites More sharing options...
verdeandrea Posted May 14, 2018 Author Share Posted May 14, 2018 Thanks bernhard, i tried to change the trailing slash option to "no" and also the Scheme/Protocol to HTTPS only, but nothing changed. I always get the 301 redirect. Any other idea? Thanks Link to comment Share on other sites More sharing options...
bernhard Posted May 14, 2018 Share Posted May 14, 2018 If you set trailing slash to "NO" but facebook requests the page via trailing slash that would lead to a 301, so you need to try both settings. You could also try a browser extension (mine is called redirect path) to see if you have any unwanted redirects on that page. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now