Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Simple SEO rewrite Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sprads
Newbie
Newbie


Joined: 16 July 2008
Location: United States
Online Status: Offline
Posts: 2
Posted: 16 July 2008 at 2:54pm | IP Logged Quote sprads

I am having problems getting a rewrite for multiple parameters.  Currently we use this:

for details.aspx?number=4111

gives 4111.htm

RewriteRule /(\d+)\.htm /Details.aspx\?Number=$1

We would like to add additional parameters to the url to further describe the page.

details.aspx?number=4111&make=chevy&model=capri

to give: Chevy_Capri_4111.htm

What would the rewrite rule look like?

Thank you

Back to Top View sprads's Profile Search for other posts by sprads
 
tilly
Groupie
Groupie


Joined: 24 June 2008
Location: Neutral Zone
Online Status: Offline
Posts: 50
Posted: 16 July 2008 at 3:43pm | IP Logged Quote tilly

Hi sprads,

Please try
Code:
RewriteRule ^/.*?([\w]+).*_([\w]+).*_([\d]+)\.htm$ /Details.aspx?number=$3&make=$1&model=$2

Cheers,

Back to Top View tilly's Profile Search for other posts by tilly
 
sprads
Newbie
Newbie


Joined: 16 July 2008
Location: United States
Online Status: Offline
Posts: 2
Posted: 16 July 2008 at 5:05pm | IP Logged Quote sprads

Perfect!  Worked great

Thank you

 

Back to Top View sprads's Profile Search for other posts by sprads
 

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