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:49 pm on Oct 15, 2012 (gmt 0)


Never use .* at the beginning or in the middle of a RegEx pattern. It causes hundreds of "back off and retry" trial match attempts.

If the hostname is missing from the index redirect, non-www requests will cause an unwanted double-redirect chain.

Errors in the HOST condition in the non-www rule prevent many non-canonical hostname requests from being properly redirected.

[edited by: g1smd at 8:52 pm (utc) on Oct 15, 2012]


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