Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rewrite rule not working - but not sure why

Status
Not open for further replies.

youradds

Programmer
Jun 27, 2001
817
GB
Hi guys,

For some reason I'm having a sod of a time with the following rule:

Code:
RewriteRule search/(.*)_P([0-9]+).html [URL unfurl="true"]http://www.site.com/search/$1_p$2.html[/URL] [R=301,L]

With the example URL:


... I would have expected it to match, and sends us to the new URL:


(notice the lowercase "p").

Can anyone spot where I'm going wrong? I can't for the life of me see why its not working! (other rules are working fine, so I know RewriteRule's are enabled)

TIA

Andy
 
Eugh - now I feel stupid. I was editing the wrong file! (there must have been a duplicate made of the .conf file at some point)

DOH!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top