markmarijnissen/extrastout/master/public/.htaccess - Htaccess File

markmarijnissen/extrastout/master/public/.htaccess

Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"

AddType image/svg+xml svg

RewriteEngine On

## STOP REFERRER SPAM
RewriteCond %{HTTP_REFERER} success-seo.com [NC,OR]
RewriteCond %{HTTP_REFERER} semalt.com [NC,OR]
RewriteCond %{HTTP_REFERER} best-seo-solution.com [NC,OR]
RewriteCond %{HTTP_REFERER} best-seo-offer.com [NC]
RewriteRule .* - [F]

# HTML
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^.]+)$ $1.html [NC,L]

On Github License

Files

Download PDF of Htaccess file
GET, HTTP_REFERER, POST, PUT, REQUEST_FILENAME

Comments

Apache