LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Redirecting URLs with specific parameters to friendly URL pages

Reply
 
Thread Tools Display Modes
  #1  
Old 02-16-2007, 09:34 AM
subBlue subBlue is offline
Member
 
Join Date: Oct 2006
Posts: 42
Default Redirecting URLs with specific parameters to friendly URL pages

I'm trying to redirect some legacy URLs for a site we have redesigned that have the format: /services/services.asp?p=13 going to /services/accomodation

I've been trying rewrite rules like:
Code:
RewriteRule ^/services/services.asp?p=13 /services/accommodation [R=301,L]
RewriteRule ^/services/services.asp?p=70 /services/activities [R=301,L]
However, the original URL isn't getting matched because the rule will only match until the parameters. Any suggestions on getting around this?
Reply With Quote
  #2  
Old 02-16-2007, 09:31 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Yes, rewriteRule only match URI, excludes QUERY_STRING. You need to use RewriteCond to match "p=13" with %{QUERY_STRING}.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:38 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.