| Posted: 01 August 2007 at 4:56am | IP Logged
|
|
|
Hi everyone.
I have a search page wich I'm tryring to rewrite. The search page can have one or more parameters, and i would like the rewrite to reflect this.
This is what I've come up with so far:
Rule1: RewriteRule /search/(.*)/ /search.aspx?searchstring=$1 [I,L] Should result in the following url: www.mydomain.com/search/thesearchstring/
Rule 2: RewriteRule /search/(.*)/page(\d+)\.htm /search.aspx\?searchstring=$1&page=$2 [I,L] Should result in the following url: www.mydomain.com/search/thesearchstring/page3.htm
Rule 3: RewriteRule /search/(.*)/(.*)/ /search.aspx\?searchstring=$1&location=$2 [I,L] Should result in the following url: www.mydomain.com/search/thesearchstring/thelocation/
Rule 4: RewriteRule /search/(.*)/(.*)/page(\d+)\.htm /search.aspx\?searchstring=$1&location=$2&page=$3 [I,L] Should result in the following url: www.mydomain.com/search/thesearchstring/thelocation/page2.htm
My problem is that rules 3 and 4 doesn't seem to work.
Any help at all would be greatly appriciated.
|