Hi, I used the feature in cPanel to redirect domain.com to www.domain.com. It palced the following code inside the .htaccess file: RedirectMatch permanent ^/$ http://www.domain.com/ After this the site was unaccessible either with www or without. Only an alert says: Redirect limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked. Then tried wack0's FAQ: Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^/(.*)$ http://www.domain.com/$1/ [R=301,L] Still no redirects but able access both www. and doman.com. Please advice what am I doing wrong here. Thanks & Regards.
RewriteEngine on Options +Indexes Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} !^www.DOMAIN\.com RewriteRule (.*) http://www.DOMAIN.com/$1 [R=301,L]
Great many thanks w@Ckø! Would you explain what this line actually do? RewriteCond %{HTTP_HOST} !^www.DOMAIN\.com Code (markup): Read the OP please!