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


ewwatson - 12:39 am on Oct 16, 2012 (gmt 0)


Can you show me what that would look like please? Or I could just put a htaccess in each subfolder in this root domain to redirect the indexes. In which case is this all thats needed for the index redirect to folder or am I totally wrong again?

RewriteRule ^index\.html$ http://www.example.com/ [L,R=301]

This one seems to work well but completely omits the RewriteCond line. Im sure its wrong. Mind showing me how to improve that simple code as well?


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