Welcome Guest, Not a member yet? Register   Sign In
Trailing slash causes issues
#4

(This post was last modified: 06-22-2022, 02:57 AM by dgvirtual.)

I noticed I also had the issue of the .htaccess rule for removing trailing slashes (redirection) ignoring the fact that my app is in a subdirectory, so it would redirect mydomain.com/myapp/mypage/ to mydomain.com/mypage/  instead of the address without the trailing slash only (mydomain.com/myapp/mypage). It was a problem in the early CI4 .htaccess file code (pre 20 Jul 2020 code, see the committ solving the issue[url=https://github.com/codeigniter4/CodeIgniter4/commit/73a774500b0548cd0303ec037681e3d31355ef4e][/url]). So, the current code of Codeigniter 4, which contains the default .htaccess file, has that issue solved.

Moreover, when checking if the changed rules work, you have to use another browser / anonymous session, because the previous rules made the browser cache the bad redirection (I might not be using the exactly technically correct language here, but hope you get what I mean).
==

Donatas G.
Reply


Messages In This Thread
Trailing slash causes issues - by kick - 05-15-2020, 11:38 AM
RE: Trailing slash causes issues - by ilFaber - 06-24-2020, 12:19 PM
RE: Trailing slash causes issues - by sammyskills - 12-12-2020, 06:49 AM
RE: Trailing slash causes issues - by dgvirtual - 06-22-2022, 02:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB