Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: rewrite without index.php Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Sa1k0
Newbie
Newbie


Joined: 02 July 2009
Location: Netherlands
Online Status: Offline
Posts: 19
Posted: 06 January 2010 at 4:57am | IP Logged Quote Sa1k0

Hi this is maybe a simple question but i cannot figure it out.

The link:

http://www.domain.com/index.php/news/    works.

But we want to show and link as:

http://www.domain.com/news/

Can somebody please help me.

We are running Isapi Rewrite 2.0
Back to Top View Sa1k0's Profile Search for other posts by Sa1k0
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -111
Posted: 06 January 2010 at 5:08am | IP Logged Quote Guests

Hi,
please, try using this simp[le rule:

[ISAPI_Rewrite]
RewriteRule /index.php/news/ news/ [I,R]

Andrew.
Back to Top View Guests's Profile Search for other posts by Guests
 
Sa1k0
Newbie
Newbie


Joined: 02 July 2009
Location: Netherlands
Online Status: Offline
Posts: 19
Posted: 06 January 2010 at 5:12am | IP Logged Quote Sa1k0

Thank you for your answer.

I have multiple pages is there an overal rule.

you can have a look at:

real url : http://www.globalelements.nl/public/index.php/nieuws/

want to show url: http://www.globalelements.nl/nieuws/
Back to Top View Sa1k0's Profile Search for other posts by Sa1k0
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -111
Posted: 06 January 2010 at 5:24am | IP Logged Quote Guests

Sure,
please, try this:

[ISAPI_Rewrite]
RewriteRule /(.*)/nieuws/ /nieuws/ [I,R]
Back to Top View Guests's Profile Search for other posts by Guests
 
Sa1k0
Newbie
Newbie


Joined: 02 July 2009
Location: Netherlands
Online Status: Offline
Posts: 19
Posted: 06 January 2010 at 5:27am | IP Logged Quote Sa1k0

I put your rule in my httpd.ini file but it does not work.

http://www.globalelements.nl/nieuws/

Back to Top View Sa1k0's Profile Search for other posts by Sa1k0
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -111
Posted: 06 January 2010 at 5:36am | IP Logged Quote Guests

Well,

when you try to go to http://www.globalelements.nl/public/index.php/nieuws/
it does redirect to
http://www.globalelements.nl/nieuws/

isn't it what you wanted?
Back to Top View Guests's Profile Search for other posts by Guests
 
Sa1k0
Newbie
Newbie


Joined: 02 July 2009
Location: Netherlands
Online Status: Offline
Posts: 19
Posted: 06 January 2010 at 5:41am | IP Logged Quote Sa1k0

No sorry. When you go to http://www.globalelements.nl/nieuws/

It has to show the page that is on http://www.globalelements.nl/public/index.php/nieuws/

(the url in the browser needs to stay on http://www.globalelements.nl/nieuws/  )

thank you.

p.s. same with http://www.globalelements.nl/over-ons/  -> show page not url: http://www.globalelements.nl/public/index.php/over-ons/
Back to Top View Sa1k0's Profile Search for other posts by Sa1k0
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -111
Posted: 06 January 2010 at 5:54am | IP Logged Quote Guests

Please, try using this rule:

[ISAPI_Rewrite]
RewriteRule /nieuws/? /public/index.php/nieuws/ [I,L]
RewriteRule /over-ons/? /public/index.php/over-ons/ [I,L]
Back to Top View Guests's Profile Search for other posts by Guests
 
IMPLI-CIT
Newbie
Newbie


Joined: 21 January 2010
Location: Netherlands
Online Status: Offline
Posts: 1
Posted: 21 January 2010 at 6:22am | IP Logged Quote IMPLI-CIT

Is there an overall rule to remove index.php/ completely for all pages?
Thanks 
Back to Top View IMPLI-CIT's Profile Search for other posts by IMPLI-CIT Visit IMPLI-CIT's Homepage
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -111
Posted: 21 January 2010 at 10:02am | IP Logged Quote Guests

YEs, there is. Please, try yhis one:

[ISAPI_Rewrite]
RewriteRule /index.php/(.*)/ $1/ [I,R]
Back to Top View Guests's Profile Search for other posts by Guests
 
borrows123
Newbie
Newbie


Joined: 26 May 2010
Location: United States
Online Status: Offline
Posts: 1
Posted: 26 May 2010 at 5:11am | IP Logged Quote borrows123

I am also trying the same but couldn't able to find the answer..
Can you briefly explain that?


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


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 26 May 2010 at 5:30am | IP Logged Quote Anton

@borrows123: Could you please create a new forum thread and explain your requirements in more details and with examples.

__________________
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