tpwalke2/walkercms.net/master/public/.htaccess - Htaccess File

tpwalke2/walkercms.net/master/public/.htaccess

Options -Indexes

DirectoryIndex index.php index.html

ErrorDocument 403     /403
ErrorDocument 404     /404
ErrorDocument 500     /500

<ifModule mod_deflate.c>
  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
</ifModule>

<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/gif "access plus 1 months"
  ExpiresByType image/jpg "access plus 1 months"
  ExpiresByType image/jpeg "access plus 1 months"
  ExpiresByType image/png "access plus 1 months"
  ExpiresByType image/vnd.microsoft.icon "access plus 1 months"
  ExpiresByType image/x-icon "access plus 1 months"
  ExpiresByType image/ico "access plus 1 months"
  ExpiresByType application/javascript "now plus 1 months"
  ExpiresByType application/x-javascript "now plus 1 months"
  ExpiresByType text/javascript "now plus 1 months"
  ExpiresByType text/css "now plus 1 months"
  ExpiresDefault "access plus 1 days"
</ifModule>

<IfModule mod_rewrite.c>
  Options +FollowSymLinks
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]

  RewriteCond expr "! %{HTTP_REFERER} -strmatch '*://%{HTTP_HOST}/*'"
  RewriteRule ^/images - [F,L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, HTTP_HOST, HTTP_REFERER, REQUEST_FILENAME

Comments

Apache