| Posted: 16 May 2008 at 6:14am | IP Logged
|
|
|
Is there a quick generic 'wildcard' one rule catches all for changing an incoming url from:-
http://www.site.com/abc/page.stm?parm=kkk
into:-
http://www.site.com/folder1/folder2/page.asp?parm=kkk
... all I'm doing is changing the stm to asp (and setting the web sitr folder structure ... ignoring the 'abc' bit ... the 'abc' is a product description). What I'm looking for is that 'anotherpage.stm/anotherpage.asp' would also work with the same rule.
I currently have rules setup for each named 'stm' file as in:-
RewriteRule ^(.*)/productlist.stm web/main/productlist.asp [NC,QSA,L]
RewriteRule ^(.*)/productdisplay.stm web/main/productdisplay.asp [NC,QSA,L]
Any help is appreciated as you can see I'm not yet an expert in this rewriting stuff.
Regards,
Steve.
|