james2doyle/ohdoylerules.com/master/.htaccess - Htaccess File

james2doyle/ohdoylerules.com/master/.htaccess

#####################################
# Browser cache for static files
#####################################
<FilesMatch ".(js|css|jpg|gif|png|jpeg)$">
    <IfModule mod_expires.c>
        ExpiresActive on
        ExpiresDefault "access plus 7 days"
    </IfModule>
    FileETag MTime Size
</FilesMatch>

#####################################
# Redirect stuff
#####################################
<IfModule mod_rewrite.c>
    # Enable URL rewriting
    RewriteEngine On

    # Change this path, if you have installed PhileCMS in a subdirectory of the website root.
    # RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule .* index.php [L]
</IfModule>

#####################################
# directory listings are disabled
#####################################
Options -Indexes

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, static

Comments

Apache