leeparsons/tpp/master/.htaccess - Htaccess File

leeparsons/tpp/master/.htaccess

ErrorDocument 404 /404
ErrorDocument 500 /500.php

RedirectMatch 301 /forum /404
RedirectMatch 301 /wp-content/plugins/media-center/contact.php /contact

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
#
<IfModule mod_expires.c>
    # Uncomment following line if you want to enable expires
    ExpiresActive On

    ExpiresByType text/css "now plus 1 year"
    ExpiresByType application/javascript "now plus 1 year"
    ExpiresByType application/x-javascript "now plus 1 year"

    ExpiresByType image/bmp "now plus 1 year"
    ExpiresByType image/gif "now plus 1 year"
    ExpiresByType image/jpeg "now plus 1 year"
    ExpiresByType image/jpg "now plus 1 year"
    ExpiresByType image/png "now plus 1 year"
    ExpiresByType image/svg+xml "now plus 1 year"
    ExpiresByType image/vnd.microsoft.icon "now plus 1 year"
    ExpiresByType image/x-icon "now plus 1 year"
    ExpiresByType image/ico "now plus 1 year"
    ExpiresByType image/icon "now plus 1 year"
    ExpiresByType text/ico "now plus 1 year"
    ExpiresByType application/ico "now plus 1 year"
</IfModule>

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
AddType image/x-icon .ico
AddType image/png .png

Header unset ETag
FileETag None

# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
    <filesMatch ".(ico|jpe?g|png|gif|swf)$">
        Header set Cache-Control "public"
    </filesMatch>
    <filesMatch ".(css)$">
        Header set Cache-Control "public"
    </filesMatch>
    <filesMatch ".(js)$">
        Header set Cache-Control "private"
    </filesMatch>
    <filesMatch ".(php)$">
        Header set Cache-Control "private, must-revalidate"
    </filesMatch>
</ifModule>
# END Cache-Control Headers

On Github License

Files

Download PDF of Htaccess file
DEFLATE, REQUEST_FILENAME

Comments

Apache