Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: A Little Bit Of Help Needed Please Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
stevesuk
Newbie
Newbie


Joined: 22 January 2008
Online Status: Offline
Posts: 3
Posted: 16 May 2008 at 6:14am | IP Logged Quote stevesuk

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.

 

 

Back to Top View stevesuk's Profile Search for other posts by stevesuk
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3556
Posted: 19 May 2008 at 3:21am | IP Logged Quote Anton

Please try to use this:

RewriteBase /
RewriteRule ^.*/([^/.]+)\.stm$ web/main/$1.asp [NC,L]



__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum