Forum Moderators: phranque
AddType application/x-httpd-php53 .php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L] RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
when you access a url without index.php in it, it acts as if the index.php was never loaded. For example, / (the top of the domain) and /forums and /{any url} all load the homepage of the site.
www.example.com/index.php/this-page and you now have URLs that look like www.example.com/this-page you do need to add a redirect so that when the old URL is requested, the user is redirected to the new one. RewriteRule ^index\.php/(.+) http://www.example.com/$1 [R=301,L]
removing index.php from the URL
<a href="/index.php/pagename"> to <a href="/pagename">" yet you also say "none of my pages have ever linked to a URL with index.php in it". I don't know why having index.php in the href in an a tag would ever matter, aside from using since you can just edit the HTML.