nugroup/nuCMS/master/.htaccess - Htaccess File

nugroup/nuCMS/master/.htaccess

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

<IfModule mod_rewrite.c>

    RewriteEngine On

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

    #production
    RewriteBase /nucms/
    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