I'm trying to force the 'www' in my site URL putting this in the .htaccess file in the root folder:
I don't know if I'm doing it right. I just copied and pasted it from somewhere.
Anyways, it isn't working. When I type in http://jdbar.co.cc/ it doesn't direct to www.jdbar.co.cc. Instead I get an error page from Firefox saying "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 have no idea how to get it working. Can anyone help?
EDIT:
I haven't resolved it yet, so I just put some Javascript on the home page to redirect it to the same home page but with www at the beginning for now... (and changed all in-site links to have the full www URL in them)
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.jdbar\.co.cc [NC]
RewriteRule ^(.*)$ http://www.jdbar.co.cc/$1 [R=301,L]
I don't know if I'm doing it right. I just copied and pasted it from somewhere.
Anyways, it isn't working. When I type in http://jdbar.co.cc/ it doesn't direct to www.jdbar.co.cc. Instead I get an error page from Firefox saying "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 have no idea how to get it working. Can anyone help?
EDIT:
I haven't resolved it yet, so I just put some Javascript on the home page to redirect it to the same home page but with www at the beginning for now... (and changed all in-site links to have the full www URL in them)