KarlDeux/neurocms/master/.htaccess - Htaccess File


# NeuroCMS
# https://github.com/KarlDeux/neurocms
# Copyright 2014, Carlos Lizaga
# http://www.neurotix.es
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT

<IfModule mod_rewrite.c>
    # URL rewriting module activation
    Options +FollowSymLinks
    Options -MultiViews
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^domain.com/subdomain/ [NC]
    RewriteRule ^(.*)$ domain.com/subdomain$1 [R=301,L]
    RewriteRule ^([0-9]+)-[a-zA-Z0-9-]*.html /subdomain/article.php?article_id=$1 [QSA,L]

# Catch 404 errors
ErrorDocument 404 /subdomain/404.php

SetEnv ROOT sandbox/

<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType text/css "access plus 1 week"
    ExpiresByType text/javascript "access plus 1 week"
    ExpiresByType application/javascript "access plus 1 week"
    ExpiresByType application/x-javascript "access plus 1 week"
    ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
    ExpiresByType application/font-woff "access plus 1 year"
    ExpiresByType font/otf "access plus 1 year"
    ExpiresByType font/ttf "access plus 1 year"
    ExpiresByType image/x-icon "access plus 1 year"

    FileETag INode MTime Size

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE image/svg+xml

<IfModule mod_mime.c>
    AddType application/vnd.ms-fontobject .eot
    AddType font/ttf .ttf
    AddType font/otf .otf
    AddType application/font-woff .woff
    AddType image/svg+xml svg svgz

On Github License


Download PDF of Htaccess file