Refactored code and added additional features
[speedfreak] / Server / .htaccess
1 # Turn on URL rewriting
2 RewriteEngine On
3
4 # Installation directory
5 RewriteBase /api
6
7 # Protect application and system files from being viewed
8 RewriteRule ^(application|modules|system) - [F,L]
9
10 # Allow any files or directories that exist to be displayed directly
11 RewriteCond %{REQUEST_FILENAME} !-f
12 RewriteCond %{REQUEST_FILENAME} !-d
13
14 # Rewrite all other URLs to index.php/URL
15 RewriteRule .* index.php/$0 [PT,L]