Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- How to redirect from non-html to .html extension


g1smd - 12:54 pm on Dec 2, 2011 (gmt 0)


Extensionless is better in the long run.

Which version of the URL does the site itself link to?

The links on the pages of your site must point to the one you want people to use.

The .html redirect should be first. The www redirect comes next. Any internal rewrite comes last.


Test for .html URL requests is
^(([^/]+/)*[^/.]+)\.html?$

Test for extensionless URL requests is
^(([^/]+/)*[^/.]+)$


Don't worry too much about what does and does not have pagerank now. Look at the long term.


Thread source:: http://www.webmasterworld.com/apache/4393296.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com