jimmyman2010/mysite/master/.htaccess - Htaccess File

jimmyman2010/mysite/master/.htaccess

#Caching schema
<FilesMatch ".(js|css|png|jpg|gif)$">
    Header set Cache-Control "public, max-age=7200"
</FilesMatch>

<IfModule mod_rewrite.c>
    #Rewrite to www
    Options +FollowSymLinks
    RewriteEngine on

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

    RewriteRule ^(.+)$ index.php?route=$1 [QSA,L]

    RewriteCond %{HTTP_HOST} ^mantrantd.com
    RewriteRule ^(.*)$ http://www.mantrantd.com/ [R=301,L]

#    ErrorDocument 404 http://www.mantrantd.com/

</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME

Comments

Apache