Semi-colons in URL changes to %3b via .htaccess -
this .htaccess file -
rewritecond %{request_uri} !(/$|\.) rewriterule (.*) %{request_uri}/ [r=301,l] <ifmodule mod_rewrite.c> rewritebase / rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d #rewriterule ^template\.php$ - [l] #rewriterule ^index\.php$ - [l] rewriterule . /template.php [l] </ifmodule>
it's designed funnel through /template.php processes rest of url & domains.
for whatever reason, when there's semi-colons provided in url (which important piece of url constructing listing queries on real estate websites) semicolons change %3b not want.
oddly enough happening on 1 website only... of sites on same server.
the above test url fine.
however take same file here..
and you'll notice ; between subarea names (arbutus, cambie & coal harbour) mysteriously changes %3b, , page title generated wrong well, because it's not getting proper array passed processing.
i'm aware may not .htaccess issue... that's best think up.
your first rule doing this. when click on second link, since doesn't end slash or period, redirects me same uri except slash. try using ne
flag semicolons don't encoded:
rewritecond %{request_uri} !(/$|\.) rewriterule (.*) %{request_uri}/ [r=301,l,ne]
not sure why dev
site isn't doing same thing, unless it's missing redirect rule.
Comments
Post a Comment