Changing & to simply &

Discuss practical ways rearrange URLs using mod_rewrite.

Changing & to simply &

Postby pauls » Tue Aug 03, 2004 12:32 am

I have a url which is being used to link to my site - unfortunately it contains & in the query string e.g.

www.pauls.com/results.php?foo=1&bar=1

basically I want to change the & to simple &. For example

www.pauls.com/results.php?foo=1&bar=1

I used the following:

Code: Select all
RewriteEngine On

RewriteRule ^/(.*)amp;(.*)$ /$1$2 [N]


but obvioulsy this didn't work... so... any ideas??
pauls
 
Posts: 1
Joined: Tue Aug 03, 2004 12:22 am

Postby seomike » Tue Aug 03, 2004 12:22 pm

RewriteRule ^/(.*)&(.*) /$1&$2 [R]

try this
seomike
 
Posts: 331
Joined: Thu May 06, 2004 7:36 pm
Location: Dallas


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 103 guests

cron