Topic: postback prepending directory
|

|
| Author |
|
pat123 Newbie

Joined: 28 January 2010
Online Status: Offline Posts: 2
|
| Posted: 28 January 2010 at 6:15am | IP Logged
|
|
|
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 |
|
| |
pat123 Newbie

Joined: 28 January 2010
Online Status: Offline Posts: 2
|
| Posted: 28 January 2010 at 8:01am | IP Logged
|
|
|
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 |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 28 January 2010 at 8:09am | IP Logged
|
|
|
Please specify what is the CMS you are using.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 28 January 2010 at 8:29am | IP Logged
|
|
|
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 |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
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
|