I'm having some problem here.Its showing two different site when I type http://www.mydomain.com and http://mydomain.com I have been trying to solve it but can't, I'm using hostgator, I have remove the files that is in http://www.mydomain.com but its still showing.I want the site that is on http://mydomain.com to be on http://www.mydomain.com also.Anyone can help ? Thanks.
You can solve it with a htaccess redirection, try it: Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC] RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L] Code (markup): So, when a visitor go to mydomain .com its redirected to www. mydomain .com Other way could be to define a base path in your code <head>: <base href="http://www.mydomain.com/"> Code (markup):
Here is how i do it on all my domains. RewriteEngine on rewriteCond %{HTTP_HOST} ^(www\.)?yourdomain\.com$ [NC] rewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R=301,L] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L] HTML: the first set will redirect yourdomain.com to https://www.yourdomain.com (remove the s in https if you want it to go to http) and the second set of lines will redirect http to https Hope this help you .. best of luck !
Thanks Talker, I'm in total confusion right now.I have remove all the files, I have even remove the domain but the files on http:// www .mydomain. com is still showing on the internet !! I just don't understand how to shut it.If there is anyone free here, can you please add me on msn - nipoker (at) hotmail. com and try help me out. Thanks