mardi 9 août 2016

Chain redirect https > http

I'm having a issue and i'm trying to understand if this is possible. My website is redirecting all the requests from http to https from AppServiceProvider.

The problem is that the 404 page is redirecting to homepage and i get two 301 redirects as follows:

http://ift.tt/2bb2NWq (301 to) > https://url.com/some_unexisting_page (301 to) > https://url.com (200)

So instead of displaying the 404 page at http://ift.tt/2aIGVO7 i'm doing another 301 redirect to homepage.

My questions is if its possible to skip the 2nd redirect and go from http://ift.tt/2bb2NWq (301 to) -> https://url.com

Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire