Forum Moderators: coopster

Message Too Old, No Replies

What is difference in example.com and www

         

toplisek

9:08 am on Dec 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have noticed that it shows correct design in URL:
http://example.com/
(notice without www)
but have issue how to solve http://www.example.com/

Which is main domain. do you have any idea why can be difference?

[edited by: engine at 3:38 pm (utc) on Dec. 3, 2008]
[edit reason] please use example.com [/edit]

PHP_Chimp

3:28 pm on Dec 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The www. version is actually a subdomain of mydomain.si. There are traditional reasons why the www. version was used as the main site, however it is up to you if you want to use that or not.
What you should do is force one domain to be used, so that you dont get duplicate content. You can use .htaccess to force either one.

Most servers are set up so that the www.mydomain.si and mydomain.si are the same thing. However that may not be the set up with your server. Use htaccess to force people to go to the site you want them to see.

toplisek

2:54 pm on Dec 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have two questions regarding this and need help:
1. What code to put in .htaccess
2. What are correct global index specifications to see this (servers are set up so that the www.mydomain.si and mydomain.si are the same thing)

omoutop

2:59 pm on Dec 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



i believe soemthing like:

RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]

will work. Of course you can find more info here in webmasterworld under the Apache section

[edited by: dreamcatcher at 1:33 am (utc) on Dec. 12, 2008]
[edit reason] use example.com. Thanks. [/edit]

toplisek

7:39 pm on Dec 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thank you