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: Rule to Forward to Another Domain Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
nemex
Newbie
Newbie


Joined: 22 July 2008
Online Status: Offline
Posts: 1
Posted: 22 July 2008 at 3:10pm | IP Logged Quote nemex

I have a subfolder on one of my sites called race  I want to write a rule so that anything going to this folder of files or subfolders within is forwarded to another URL.  I was thinking something like this:

RewriteRule /race             http://www.mydomain.com/  [I,L]
RewriteRule /race/            http://www.mydomain.com/  [I,L]
RewriteRule /race/([0-9A-Za-z_.]+) http://www.mydomain.com/$1  [I,L]
RewriteRule /race/([0-9A-Za-z_.]+)/ http://www.mydomain.com/$1  [I,L]

However, this doesn't seem to work.  Can anyone enlighten me?  Your help is greatly appreciated!!
Back to Top View nemex's Profile Search for other posts by nemex
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7468
Posted: 28 July 2008 at 4:39pm | IP Logged Quote Lexey

RewriteRule /race(?:/([0-9A-Za-z_.]+))?/? http\://www.mydomain.com/$1 [I,R]
Back to Top View Lexey's Profile Search for other posts by Lexey
 

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