| Author |
|
Sa1k0 Newbie

Joined: 02 July 2009 Location: Netherlands
Online Status: Offline Posts: 19
|
| Posted: 06 January 2010 at 4:57am | IP Logged
|
|
|
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 |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -111
|
| Posted: 06 January 2010 at 5:08am | IP Logged
|
|
|
Hi,
please, try using this simp[le rule:
[ISAPI_Rewrite]
RewriteRule /index.php/news/ news/ [I,R]
Andrew.
|
| Back to Top |
|
| |
Sa1k0 Newbie

Joined: 02 July 2009 Location: Netherlands
Online Status: Offline Posts: 19
|
| Posted: 06 January 2010 at 5:12am | IP Logged
|
|
|
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 |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -111
|
| Posted: 06 January 2010 at 5:24am | IP Logged
|
|
|
Sure,
please, try this:
[ISAPI_Rewrite]
RewriteRule /(.*)/nieuws/ /nieuws/ [I,R]
|
| Back to Top |
|
| |
Sa1k0 Newbie

Joined: 02 July 2009 Location: Netherlands
Online Status: Offline Posts: 19
|
| Posted: 06 January 2010 at 5:27am | IP Logged
|
|
|
I put your rule in my httpd.ini file but it does not work.
http://www.globalelements.nl/nieuws/
|
| Back to Top |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -111
|
| Posted: 06 January 2010 at 5:36am | IP Logged
|
|
|
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 |
|
| |
Sa1k0 Newbie

Joined: 02 July 2009 Location: Netherlands
Online Status: Offline Posts: 19
|
| Posted: 06 January 2010 at 5:41am | IP Logged
|
|
|
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 |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -111
|
| Posted: 06 January 2010 at 5:54am | IP Logged
|
|
|
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 |
|
| |
IMPLI-CIT Newbie

Joined: 21 January 2010 Location: Netherlands
Online Status: Offline Posts: 1
|
| Posted: 21 January 2010 at 6:22am | IP Logged
|
|
|
Is there an overall rule to remove index.php/ completely for all pages? Thanks
|
| Back to Top |
|
| |
Guests Guest

Joined: 01 October 2003
Online Status: Online Posts: -111
|
| Posted: 21 January 2010 at 10:02am | IP Logged
|
|
|
YEs, there is. Please, try yhis one:
[ISAPI_Rewrite]
RewriteRule /index.php/(.*)/ $1/ [I,R]
|
| Back to Top |
|
| |
borrows123 Newbie

Joined: 26 May 2010 Location: United States
Online Status: Offline Posts: 1
|
| Posted: 26 May 2010 at 5:11am | IP Logged
|
|
|
I am also trying the same but couldn't able to find the answer.. Can you briefly explain that?
__________________ BORROWS
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10489
|
| Posted: 26 May 2010 at 5:30am | IP Logged
|
|
|
@borrows123: Could you please create a new forum thread and explain your requirements in more details and with examples.
__________________ Regards,
Anton
|
| Back to Top |
|
| |