twebr/eftelingmuziek/master/root/.htaccess - Htaccess File

twebr/eftelingmuziek/master/root/.htaccess

# Necessary to prevent problems when using a controller named "index" and having a root index.php
# more here: http://httpd.apache.org/docs/2.2/content-negotiation.html
Options -MultiViews

# Disallows others to look directly into folders
Options -Indexes

# Only rewrite if module is available
<IfModule mod_rewrite.c>
    RewriteEngine On

    # Change this line accordingly
    # RewriteBase /Projecten/2014001_Reflector/dist/

    # Just go to index.php when requested
    RewriteRule ^index.php$ - [L]

    # If the requested filename is not a directory,
    RewriteCond %{REQUEST_FILENAME} !-d
    # and if the requested filename is not a regular file that exists,
    RewriteCond %{REQUEST_FILENAME} !-f
    # and if the requested filename is not a symbolic link,
    RewriteCond %{REQUEST_FILENAME} !-l

    # then rewrite the URL in the following way:
    # Take the whole request filename and provide it as the value of a
    # "url" query parameter to index.php. Append any query string from
    # the original URL as further query parameters (QSA), and stop
    # processing this .htaccess file (L).
    RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
</IfModule>

# Explanation: @url http://randomtype.ca/blog/the-wordpress-htaccess-file-explained/

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache