Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Canonicalization: best code to redirect no-www to www & index to /


g1smd - 8:37 pm on Oct 15, 2012 (gmt 0)


Use example.com in this forum to suppress URL auto-linking.

There's a lot of errors in there, not least the .* in the middle of the index RewriteCond pattern and the beginning of the index RewriteRule pattern.

The non-www redirect fails to redirect many requests, such as those with port numbers and others.

The correct code has been published several times so far this month. Its a regular question here.


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