As you might have known, my entire site runs on ExpressionEngine and my current setup is to have clean URLs both for human readability and SEO. I have used the following approach to achieve this.
1. Do a normal install. At the end of the install you will have URLs with index.php
2. Setup auto mode and check PATH_INFO value. Since in my case PATH_INFO is empty, I have to use ORIG_PATH_INFO as provided by my hosting.
3. To remove index.php the first step is to configure your .htaccess file:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
4. The next step is to logon to Administration panel, get to System Preferences -> General Configuration and empty the index page setting (that is, if you see index.php, remove it)
5. Go ahead and thoroughly test your site with confidence! ( This is not optional
j/k )
Tech Help: If you don’t understand any of the above steps, get someone with PHP & .htaccess knowledge and/or read this documentation link from ExpressionEngine: Remove index.php from URLs using File and Directory Check Method
Hope this helps in tweaking and hacking your site!
Posted by Sheriff, Md. at 03:05 AM. Filed under:
(91) Comments • (1) Trackbacks • Permalink