ckmah/bmes_website_v3/master/dev/.htaccess - Htaccess File

ckmah/bmes_website_v3/master/dev/.htaccess

//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^bmes.ucsd.edu[nc]
RewriteRule ^(.*)$ http://www.bmes.ucsd.edu/$1 [r=301,nc]

//Remove HTML Extension
RewriteRule ^([^.]+)$ $1.html [NC,L]

//Custom 404 errors
ErrorDocument 404 error.html

//Block bad bots

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST

Comments

Apache