J
J
Jack London2018-03-16 22:42:41
PHP
Jack London, 2018-03-16 22:42:41

How to fix a circular redirect?

There is a site that received free ssl for the domain, which, accordingly, does not apply to the subdomain, but for the subdomain it seems to be not needed, here the site itself has a link to the subdomain "log in to VK through ..." after clicking on which it turns out cyclic redirect (error 301), did everything with 100% accuracy according to this manual, and without ssl on the main domain everything worked fine. Thank you all in advance, can anyone know what could be the reason for the redirect?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
Jack London, 2018-03-22
@Windhack

To resolve this issue, automatic redirection of the site to https was disabled in the hosting account settings and htaccess was written in which redirection was configured only for the domain, after which the redirect on the subdomain ceased to function, respectively, this issue was resolved. Thanks to all!

S
Stalker_RED, 2018-03-16
@Stalker_RED

Set a breakpoint and see what happens there with the debugger.
If "oh, the debugger is difficult" - add logging to each sneeze and see the log. Although it's easier to figure out how the debugger works.

A
Alexander null, 2018-03-17
@snikes

htaccess to the studio, most likely there are redirects:
1. for all subdomains and the domain from http to https
2 and for a specific subdomain from https to http

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question