Currently, I only have static HTML pages on a domain and want to redirect domain.com to www.domain.com I added the following statement as the first statement in .htaccess : Redirect 301 / http://www.domain.com/ and got the following message(from Firefox) --- "The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete." I am on 1and1's servers. All advice welcome.
Try with RedirectMatch or you can also try mode_rewrite Options +FollowSymlinks RewriteEngine On RewriteRule ^(.*) http://domain.com/$1 [R=301,L] Code (markup):