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.

http://dev.brixwork.com/listings/city-vancouver+west/area-arbutus;cambie;coal+harbour/order_by-create_date/order_direction-desc/page-1

the above test url fine.

however take same file here..

http://suzannec.brixwork.com/listings/city-vancouver+west/area-arbutus;cambie;coal+harbour/order_by-create_date/order_direction-desc/page-1

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

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -