
Suppose that you have a website and the URL is www.mysite.com. If your default index page is an index.php file, for aesthetic purposes you will likely want to make sure that your homepage URL shows up aswww.mysite.com as opposed to www.mysite.com/index.php. The code below will show you how to achieve this. Note that the code should go in the .htaccess file in your root folder.
The Code
1 |
RewriteRule ^index\.php(.*)$ /$1 [R,L,QSA] |