This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: Rewrite keeps adding index.php to links
Author
Message |
timesten
Newbie


Joined: 08 February 2010
Posts: 1
Posted: 08 February 2010 at 11:53am

We are ready to go live with our Joomla site and unfortunately after days and days we are still unable to get our links to display properly.

Right now I have SEO friendly urls turn off - otherwise the entire site goes down.

When I do enable them the pages stop working.

The link SHOULD work like this:
http://www.avilahotel.com/newsite/life

however it does not - to get to the page you have to add the index.php option
http://www.avilahotel.com/newsite/index.php/life

How do we make it so that it just goes to the page (any page, not just this page) without having to add that index.php?


Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 09 February 2010 at 2:23am

Please try to use the following rules:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(?!.*index\.php)(.+?)([^/]+)$ $1index.php/$2 [NC,L]

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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