Can't stop the redirect... - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1) +--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3) +--- Thread: Can't stop the redirect... (/showthread.php?tid=74988) |
Can't stop the redirect... - skunkbad - 12-04-2019 Client asks me to log into their MOZ account and fix some issues that are being reported. One of the issues is named "Redirect Chain" and shows a URL like this: https://example.com/a/b/"https://example.com/c/ When I follow that link, request headers show a 301 redirect to https://example.com/c/ So I tried to use mod rewrite and a 301 redirect of my own in .htaccess, but there is no way to stop the redirect. So then I tested it on an unrelated site. For instance: https://unrelated-domain.com/a/b/"https://unrelated-domain.com/c/ and sure enough, it redirects to https://unrelated-domain.com/c/ This is on an apache server if it matters. How does one deal with this? The issue was introduced when the client added a link to /c/ on their site but accidentally prepended theĀ URL with a double quote. RE: Can't stop the redirect... - jreklund - 12-04-2019 What do you want to happen when the user clicks that malformed url? RE: Can't stop the redirect... - skunkbad - 12-04-2019 That link should be 410 gone |