Redirect strips trailing slash
-
When Content Control does a redirect to login as a result of a restriction applying it appears to strip the trailing slash from the url. As a result it causes a 301 redirection later on. In the apache log I can see:
- “GET /event/test-y6/ HTTP/1.1” 302 – request being redirected by CC
- “GET /wp-login.php?redirect_to=http%3A%2F%2Flocalhost%3A8080%2Fevent%2Ftest-y6 HTTP/1.1” 200 – sent to login page passing the redirect information (but missing trailing slash)
- “GET /event/test-y6 HTTP/1.1” 301 – request not quite complete because of missing trailing slash
- “GET /event/test-y6/ HTTP/1.1” 200 – WordPress revised url now ok
Functionally this isn’t a problem, but I’d prefer to avoid unnecessary 301 redirections if possible.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Redirect strips trailing slash’ is closed to new replies.