SimpleRouter/.htaccess

15 lines
392 B
ApacheConf
Raw Normal View History

2015-09-10 06:37:52 -05:00
DirectoryIndex index.php
2015-09-10 07:09:42 -05:00
2018-03-12 10:49:55 -05:00
# enable apache rewrite engine
2015-09-10 06:37:52 -05:00
RewriteEngine on
2015-09-10 07:09:42 -05:00
2018-03-12 10:49:55 -05:00
# set your rewrite base
2018-03-13 10:01:52 -05:00
# Edit this in your init method too if you script lives in a subfolder
2015-09-10 06:37:52 -05:00
RewriteBase /
2015-09-10 07:09:42 -05:00
2018-03-12 10:49:55 -05:00
# Deliver the folder or file directly if it exists on the server
2015-09-10 06:37:52 -05:00
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
2018-03-12 10:49:55 -05:00
# Push every request to index.php
2015-09-10 06:37:52 -05:00
RewriteRule ^(.*)$ index.php [QSA]