Jump to content

Recommended Posts

Posted

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!

Posted

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

Posted

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.

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...