sublimemarch / personal-site

a personal portfolio website
http://fenslattery.com
0 stars 0 forks source link

Fix .htaccess issues #21

Open sublimemarch opened 6 years ago

sublimemarch commented 6 years ago

From Jess:

So it seems like some of your pages require .html and some don't. You can fix this in your .htaccess file so that no matter what people type in in the browser (or what you link to) it will go to the right place.

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
sublimemarch commented 6 years ago

Also from Jess:

Oh. your .htaccessfile needs to start with this line RewriteEngine on Otherwise it won't actually do anything.