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 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Missing trailing Slash
Author
Message |
czbear
Newbie


Joined: 03 June 2010
Posts: 7
Posted: 11 August 2010 at 1:18pm

I have a ruleset that translates directories into querystring values passed to sifferent pages based on heirarchy.

When the trailing slash is not inlcuded I need to redirect them with the slash appended before the request can be properly acted on by the subsequent rules.

Here is the INI the rule works in the regex test utility but does not work in practice:

[ISAPI_Rewrite]

#enabling rewrite.log
RewriteLogLevel 9
#enabling error.log
LogLevel debug

# Defend your computer from some worm attacks
RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]

RewriteRule  ^(.*?title)/([^.?]+[^.?/]) http\://$1/$2/ [I,RP]

RewriteRule ^(.*?title)/([^/]*)/([^/]*)/([^/]*)/(.[^/]*?.htm)? $1/dept_section_page\.asp\?dept=$2&subsec=$3&art=$4 

RewriteRule ^(.*?title)/([^/]*)/([^/]*)/(.[^/]*?.htm)? $1/dept_section\.asp\?dept=$2&subsec=$3

RewriteRule ^(.*?title)/([^/]*)/(.[^/]*?.htm)? $1/department\.asp\?dept=$2

Back to Top
 
czbear
Newbie


Joined: 03 June 2010
Posts: 7
Posted: 11 August 2010 at 7:21pm

I believe I've solved my own problem. Thanks for everyone who answers posts here.

For My Application in "/title"
RewriteRule ^(.*?title)/([^.?]+[^.?/]) $1/$2/ [I,RP]

For General Global Application
RewriteRule ^(.*?)/([^.?]+[^.?/]) $1/$2/ [I,RP]

Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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