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: Help with rule Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
superwebs
Newbie
Newbie


Joined: 12 December 2003
Location: United Kingdom
Online Status: Offline
Posts: 33
Posted: 13 July 2008 at 6:41am | IP Logged Quote superwebs

I am working on a holiday villas site. We would like to include the country in the url, but ignore this in the rule, as follows:

domain.com/cyprus-villa-401.htm
domain.com/spain-villa-501.htm

This would redirect to:

domain.com/property_detail.asp?id=401
domain.com/property_detail.asp?id=501
Back to Top View superwebs's Profile Search for other posts by superwebs Visit superwebs's Homepage
 
superwebs
Newbie
Newbie


Joined: 12 December 2003
Location: United Kingdom
Online Status: Offline
Posts: 33
Posted: 13 July 2008 at 6:43am | IP Logged Quote superwebs

Sorry, forget this one. I have worked it out:

RewriteRule /([^/]+)-villa-([^/]+)\.htm   /property_detail.asp\?id=$2 [I,L]
Back to Top View superwebs's Profile Search for other posts by superwebs Visit superwebs's Homepage
 

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