TomasSjosten/anaxMVC_phpunit/master/webroot/.htaccess - Htaccess File

TomasSjosten/anaxMVC_phpunit/master/webroot/.htaccess

# http://httpd.apache.org/docs/current/mod/core.html#errordocument
# ErrorDocument 404 /404.php
ErrorDocument 404 "This is a Anax 404. Document is not here."

<IfModule mod_rewrite.c>
    RewriteEngine on
#
#  # Must use RewriteBase on www.student.bth.se, Rewritebase for url /~mos/test is /~mos/test/
#  #RewriteBase /change/this/to/site/base/url/if/needed/
#
    #RewriteBase /~tosj15/mvcphp/kmom05/webroot/
    #RewriteBase /studier/mvcphp/kmom05/webroot/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_URI} theme [NC]
    RewriteRule (.*) theme.php/$1 [NC,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_URI} setupdb [NC]
    RewriteRule (.*) setupdb.php/$1 [NC,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_URI} !^theme [NC]
    RewriteRule (.*) index.php/$1 [NC,L]

</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache