Clean URL Site setup

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

Hey

Check out my new site. I bought the domain name from yahoo and I have hosted the site by using Google Apps.

http://www.sharadtriyama.com

Mathangi

Name:

Email:

Location:

URL:

Smileys

Remember my personal information

Notify me of follow-up comments?

Submit the word you see below: