rasmusakerlund/Alex-base/master/webroot/.htaccess - Htaccess File

rasmusakerlund/Alex-base/master/webroot/.htaccess

# http://httpd.apache.org/docs/current/mod/core.html#errordocument
#Following needs an absolutepath which I don't want to use.
#ErrorDocument 404 /rasmus/bt/oop/Alex-base/webroot/404.php
#ErrorDocument 404 "This is a Alex 404. Document is not here."

#copy: the following is copied from stackoverflow. It allows
#me to give a relative address to the 404 file so that Alex
#will hopefully work on the BTH-server without reconfiguration.
RewriteEngine on
#if requested resource isn't a file
# and isn't a directory
# then serve local error script
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* 404.php [L]
#endcopy:

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache