2015-09-10 06:37:52 -05:00
|
|
|
DirectoryIndex index.php
|
2015-09-10 07:09:42 -05:00
|
|
|
|
|
|
|
#enable apache rewrite engine
|
2015-09-10 06:37:52 -05:00
|
|
|
RewriteEngine on
|
2015-09-10 07:09:42 -05:00
|
|
|
|
|
|
|
#set your rewrite base
|
2015-09-10 06:37:52 -05:00
|
|
|
RewriteBase /
|
2015-09-10 07:09:42 -05:00
|
|
|
|
|
|
|
#Deliver the folder or file if it exists on the server directly
|
2015-09-10 06:37:52 -05:00
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
|
2015-09-10 07:09:42 -05:00
|
|
|
#Push every request to index.php
|
2015-09-10 06:37:52 -05:00
|
|
|
RewriteRule ^(.*)$ index.php [QSA]
|