Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Redirect Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
beakertrail
Newbie
Newbie


Joined: 15 March 2007
Online Status: Offline
Posts: 9
Posted: 22 January 2010 at 1:46pm | IP Logged Quote beakertrail

Hi,
I have the following:

RewriteRule /([^/]+) /level1/home.asp?id=$1 [I,L]
RewriteRule /([^/]+)/ /level1/home.asp?id=$1 [I,L]

I would like to eliminate the first rule because items on the page don't always work properly if there isn't the last /
If someone goes to www.site.com/directory it needs to redirect them to www.site.com/directory/ - basically just adding in the last /
Is there an easy way to do this?

Thanks,

James
Back to Top View beakertrail's Profile Search for other posts by beakertrail
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 25 January 2010 at 4:12am | IP Logged Quote Anton

Please consider using this:

RewriteRule /([^/]+) /$1/ [R]
RewriteRule /([^/]+)/ /level1/home.asp?id=$1 [I,L]

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


Joined: 15 March 2007
Online Status: Offline
Posts: 9
Posted: 25 January 2010 at 4:18pm | IP Logged Quote beakertrail

Perfect. Thank you
Back to Top View beakertrail's Profile Search for other posts by beakertrail
 

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