htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Remove query string and redirect to specific URL
PostPosted: 01 Oct 2008 11:20 
Offline

Joined: 01 Oct 2008 11:15
Posts: 1
I'd like to redirect some specific URLs with queries in them, to other pages.

I know I can do pattern matching and redirect every url with a query string %{QUERY_STRING} to another url, but I want to be able to specify exactly what URL to redirect to, and I can't seem to figure out how.

This what I have currently, there are several of these URLS and each one is different - I want to manually specify each one.

Code:
RewriteRule ^gift\.php\?type=312$ /gift/school-supplies/ [R=301,L]
RewriteRule ^gift\.php\?type=318$ /gift/mosquito-net/ [R=301,L]


Thank you!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: MSN [Bot], MSNbot Media and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB