xprezesx/fitCMS/master/.htaccess - Htaccess File

xprezesx/fitCMS/master/.htaccess

#RewriteEngine on
#RewriteCond $1 !^(index.php|images|robots.txt)
#RewriteRule ^(.*)$ index.php/$1 [L]

<IfModule mod_rewrite.c>

    RewriteEngine On

    #development
    RewriteBase /litecms/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REMOTE_ADDR} !^localhost
    RewriteRule ^(.*)$ index.php?/$1 [L]

    #production
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]

</IfModule>

<IfModule !mod_rewrite.c>

    ErrorDocument 404 /index.php

</IfModule>

On Github License

Files

Download PDF of Htaccess file
REMOTE_ADDR, REQUEST_FILENAME

Comments

Apache