Pretty Permalinks – trying to get rid of index.php
-
My server is running Apache, so there’s no problem with mod rewrite. But I’m trying to set up Pretty Permalinks as so:
mydomain.com/my-pretty-permalink/
However, no matter what I seem to do, I end up with
mydomain.com/index.php/my-pretty-permalink/
I can manually type in the url without the index.php and it works just fine, but all the links in the pages put in the index.php.
Am I missing something somewhere? I know it can work without index.php because I’ve seen plenty of sites doing just that.
The options gives me this to add to my htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /index.php/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php/index.php [L]
</IfModule>I tried changing it to this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>and still the same.
I’d really like to get rid of the index.php in the permalink if I can…how do I do it?
Thanks!
Juli
- The topic ‘Pretty Permalinks – trying to get rid of index.php’ is closed to new replies.