- Nov 14, 2011
- 1,461
- 1,622
At present, on a HTML website I have created, all my URL's end in .html, and the pages don't load without it.
How much of an issue does this cause? Thinking in terms of best practices.
I figured I could edit .htaccess to make sure nobody misses the page by omitting the .html using something like;
I would do this for each and every page. Time spent is not a factor, as there are only 33 pages on-site and any additionals will be few and far between in the future, if any.
Thoughts on this? Or can someone explain a better solution.
Thank you.
How much of an issue does this cause? Thinking in terms of best practices.
I figured I could edit .htaccess to make sure nobody misses the page by omitting the .html using something like;
Code:
RewriteRule ^page1$ /page1.html? [L,R=301]
I would do this for each and every page. Time spent is not a factor, as there are only 33 pages on-site and any additionals will be few and far between in the future, if any.
Thoughts on this? Or can someone explain a better solution.
Thank you.