Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Generic redirect Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dorudavidson
Newbie
Newbie


Joined: 11 January 2008
Online Status: Offline
Posts: 9
Posted: 19 September 2008 at 2:13pm | IP Logged Quote dorudavidson

Hi Guys,

I know you probably answered this question hundreds of times, but for some reason, none of the posts give me any insight on this.

I need to take all requests and insert some additional text in them:

Example:

http://any-host/any-directory/etc/etc/

needs to be converted to:

http://any-host/default/index.php/any-directory/etc/etc/

Basically, insert /default/index.php after the domain name on every request


Really appreciate your help!

Back to Top View dorudavidson's Profile Search for other posts by dorudavidson
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7598
Posted: 19 September 2008 at 2:26pm | IP Logged Quote Lexey

RewriteRule (?!/default/index\.php/)(.*) /default/index.php$1 [I,L]
Back to Top View Lexey's Profile Search for other posts by Lexey
 
dorudavidson
Newbie
Newbie


Joined: 11 January 2008
Online Status: Offline
Posts: 9
Posted: 19 September 2008 at 2:36pm | IP Logged Quote dorudavidson

Thanks for the reply Lexey,

I forgot to mention that I have one exception that needs to be accounted for:

ttp://any-host/admin/

needs to be left alone. How do you do that?
Back to Top View dorudavidson's Profile Search for other posts by dorudavidson
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7598
Posted: 19 September 2008 at 2:41pm | IP Logged Quote Lexey

RewriteRule (?!/admin/|/default/index\.php/)(.*) /default/index.php$1 [I,L]
Back to Top View Lexey's Profile Search for other posts by Lexey
 
dorudavidson
Newbie
Newbie


Joined: 11 January 2008
Online Status: Offline
Posts: 9
Posted: 19 September 2008 at 3:55pm | IP Logged Quote dorudavidson

Much appreciated, Lexey!

Спасибо.
Back to Top View dorudavidson's Profile Search for other posts by dorudavidson
 

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