Can I access my domain address with or without the "www"?


Yes, you will be able to access your domain address with or without the "www" in front of the domain name.

When a web site visitor types in "http://www.yourdomain.com" or "http://yourdomain.com" (where yourdomain.com refers to the name of your domain name), they'll be taken to the front page of your site.

You might want to consider changing this however as Google can this as duplicate content and any link value could be split between www. and non www.

Adding the code below into your .htaccess file will redirect to one (whichever one you choose)

 

RewriteEngine On
RewriteCond %{HTTP_HOST} !^my-domain\.com$ [NC]
RewriteRule ^(.*)$ http://my-domain.com/$1 [R=301,L]

Помог ли вам данный ответ?

 Распечатать статью

Связанные статьи

How do I create a parked domain?

Login to cPanel. Locate and click on the "Domains" icon in the "Domains" category. Enter...

How do I create a redirect?

Login to cPanel. Locate and click on the "Redirects" icon under the "Domains" category....

How do I create a subdomain?

Login to cPanel. Locate and click on the "Domains" icon in the "Domains" category. Enter...

How do I create an addon domain?

Login to cPanel. Locate and click on the "Domains" icon in the "Domains" category. Enter...

How long do domains take to propagate?

Domains usually take anywhere from 15 minutes to 3 hours to propagate, although this process may...