Htaccess File

anthrotech/restapiexample/master/.htaccess

REQUEST_FILENAME, REQUEST_URI
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]   
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>     

<IfModule !mod_rewrite.c>
    ErrorDocument 404 /
</IfModule> 

DirectoryIndex index.php
Exit mobile version