DrWebber Posted March 5, 2010 Report Posted March 5, 2010 How do I get the www visible for my domain...??? I know its not really necessary, and if you type it as part of the address, it gets redirected to my domain, but just curious to know why the url appears as http://mydomain.com and not http://www.mydomain.com... Quote
Cody R. Posted March 5, 2010 Report Posted March 5, 2010 How do I get the www visible for my domain...??? I know its not really necessary, and if you type it as part of the address, it gets redirected to my domain, but just curious to know why the url appears as http://mydomain.com and not http://www.mydomain.com... With our services it should work by default by technically speaking if you're running your own DNS servers you have to create an "A" entry for "www.yourdomain.com". Quote
DrWebber Posted March 5, 2010 Author Report Posted March 5, 2010 As Im not runing my own dns servers, I waould imagine that this is something you could resolve...?? Thanks Quote
Brian Posted March 6, 2010 Report Posted March 6, 2010 If you login to cPanel and go to the "Simple DNS Zone Editor" you can add a CNAME entry for www We can do it for you as well, all you'd need to do is submit a ticket at https://support.hawkhost.com Quote
DrWebber Posted March 26, 2010 Author Report Posted March 26, 2010 (edited) Apparantly this has been checked.. and is fine... but my site still does not show as www.mydomain.com.. I know its nothing major, Im just curious to know why this is, and how it can be resolved... when I try to go to my blog, www.mydomain.com/blog, it shows as http://mydomain.com/blog Thanks Edited March 26, 2010 by DrWebber Quote
Tony Posted March 26, 2010 Report Posted March 26, 2010 Apparantly this has been checked.. and is fine... but my site still does not show as www.mydomain.com.. I know its nothing major, Im just curious to know why this is, and how it can be resolved... when I try to go to my blog, www.mydomain.com/blog, it shows as http://mydomain.com/blog Thanks Wordpress redirects to just one url. So if you specify it as just mydomain.com/blog/ then it's going to make anything else that goes to it's folder redirect as such. This is so there is not duplicate content for search engines. So it sounds like www. works fine on your site which makes sense our system automatically adds DNS and web server entries. It's just the fact your software is redirecting to one url. Quote
speedturtle Posted March 26, 2010 Report Posted March 26, 2010 (edited) when I try to go to my blog, www.mydomain.com/blog, it shows as http://mydomain.com/blog I'm assuming you're using WordPress for your blog. In order to display as http://www.mydomain.com/blog, you need to: 1) Log into http://mydomain.com/blog/wp-login.php and click on Settings 2) Change the WordPress address (URL) and Blog address (URL) to include www i.e. http://www.mydomain.com/blog 3) Click on Save Changes (you will get some warning messages here due to www inclusion but that's ok.) - your changes will be saved despite the warning messages. 4) Clear your browser's cache. When you enter http://mydomain.com/blog or http://www.mydomain.com/blog, it will now show as http://www.mydomain.com/blog Edited March 27, 2010 by speedturtle Quote
speedturtle Posted March 26, 2010 Report Posted March 26, 2010 but my site still does not show as www.mydomain.com.. In order for your site to show as http://www.mydomain.com/, you need to create a .htaccess file in your domain root folder with the following contents: Options +FollowSymlinks RewriteEngine On RewriteCond %{HTTP_HOST} ^mydomain.com$ [NC] RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L] Do this after you have fixed the WordPress settings. Actually, it's a good idea to display www in front of the domain name (google & amazon do it) and you need to be consistent whenever you refer to your Urls. You can read more about "canonical issue" by googling it. CNAME and 301 redirect do not do the same thing. CNAME and A records are part of the DNS system, while 301s are part of the HTTP protocol. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.