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: postback prepending directory Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
pat123
Newbie
Newbie


Joined: 28 January 2010
Online Status: Offline
Posts: 2
Posted: 28 January 2010 at 6:15am | IP Logged Quote pat123

Hi,

I am using Helicon ISAPA rewrite lite.
It had been working on postbacks.

We have multiple sites sharing the server.
So the rewrite on the domain www. mydomain .com keeps the URL, but redirects to the folder for that domain :
www. mydomain .com /folderforthissite...

I recently upgraded a Content Management System we are using... I don't know why this affected the ISAPI rewrite... But now it tries to prepend the folder twice on a postback...
www. mydomain .com /folderforthissite/folderforthissite...

I don't know what could have changed to cause the rewrite to do this?

Is there a simple fix in the rewrite rules.
Or does nayone know what might have caused this behaviour?

We wrote out rules back in 2005, on version 2.8 of Helicon ISAPI rewrite. I can barey remember how it all works, because I haven't had to do anything in the past 5 years, as it has always worked...


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


Joined: 28 January 2010
Online Status: Offline
Posts: 2
Posted: 28 January 2010 at 8:01am | IP Logged Quote pat123

Hi,

Would it fix the problem if I could add a rule to catch :

www. mydomain .com /folderforthissite/folderforthissite/page.aspx
& rewrite it as
www. mydomain .com /folderforthissite/page.aspx

Is this possible with a simple RewriteCond & RewriteRule.

If anyone could show me how to write this kind of condition & rule I would appreciate it...

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


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 28 January 2010 at 8:09am | IP Logged Quote Anton

Please specify what is the CMS you are using.

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


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 28 January 2010 at 8:29am | IP Logged Quote Anton

Yes, you can rewrite it but only if you know the specific foldername:

RewriteRule /folderforthissite/folderforthissite/page.aspx /folderforthissite/page.aspx [I,L]

__________________
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