This forum has been moved here:
Helicon Tech Community Forum

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


Joined: 07 January 2007
Location: United States
Online Status: Offline
Posts: 14
Posted: 01 February 2011 at 11:20pm | IP Logged Quote 3plains

I would like to remove the trailing slash in ISAPI_Rewrite 2 instead of forcing the trailing slash.

Example:
http://www.3plains.com/logos/
to
http://www.3plains.com/logos

Currently the rule I have is:
# Force a trailing
RewriteCond Host: (.*)
RewriteRule ([^.?]+[^.?/]) http\://$1$2/ [I,R]
Back to Top View 3plains's Profile Search for other posts by 3plains Visit 3plains's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 02 February 2011 at 4:34am | IP Logged Quote Anton

It should be like this:

RewriteCond Host: (.*)
RewriteRule ([^.?]+[^.?/])/ http\://$1$2 [I,R]

__________________
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