Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: Rewrite keeps adding index.php to links Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
timesten
Newbie
Newbie


Joined: 08 February 2010
Online Status: Offline
Posts: 1
Posted: 08 February 2010 at 11:53am | IP Logged Quote timesten

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 View timesten's Profile Search for other posts by timesten
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 09 February 2010 at 2:23am | IP Logged Quote Anton

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