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: Trailing Slash Issue Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
bobmc859
Newbie
Newbie


Joined: 22 June 2011
Online Status: Offline
Posts: 4
Posted: 27 June 2011 at 1:26pm | IP Logged Quote bobmc859

Hello all,

I'm having issues with a rule that is auto adding the Trailing Slash to my URLs. We are a .Net shop that is starting to utilize the Model View Controller Framework and on those sites that use MVC we do not want to add in the Trailing Slash via the ISAPI rules. However I've found that several, not all, of my Applications break if I simply comment out the trailing slash rule in the httpd.ini file. I'm not sure what is happens because in our Test envir. it does not seem to be a problem, we've commented out the rule there and all apps work as expected.

I've inherited this network and I'm not a developer by any means so I'm not sure why it was put there in the first place, I've just been told to remove it. Obviously I can't just simply pull the plug on the rule because it breaks several production apps.

I was hoping someone here could help me understand the purpose of why we'd have this rule and why it may effect only some applications. I've copied the rule below if anyone needs a reference what I'm referring too. As I mentioned we are a .Net shop running on W2K3 servers.

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

Any thoughts or suggestions would be very much appreciated.

Thanks,
Bob

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


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 29 June 2011 at 5:17am | IP Logged Quote Anton

Could you please specify what error you get with the rule commented out.
Also please tell if you are using any other rewrite rules.
If yes, give an example of request that fails.

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


Joined: 22 June 2011
Online Status: Offline
Posts: 4
Posted: 30 June 2011 at 7:34am | IP Logged Quote bobmc859

I found that we had other rewrite rules that was causing my issue. 

Thanks

Back to Top View bobmc859's Profile Search for other posts by bobmc859
 

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