Will I be able to access my domain name with or without the www?

Accessing Your Domain With or Without WWW

 

Yes, your website will load with both www.yourdomain.com and yourdomain.com by default. Both versions point to the same website content.

 

Choose One as Your Primary (Important for SEO)

While both versions work, search engines treat them as separate URLs. Having both active without a redirect creates duplicate content. Pick one as your primary version and redirect the other to it.

 

Force WWW:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com$ [NC]
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R=301,L]

 

Force non-WWW:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.yourdomain.com$ [NC]
RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L]

 

Add whichever redirect you prefer to your .htaccess file in public_html. Most modern websites use the non-www version since it is shorter and cleaner, but either choice is fine as long as you are consistent.

 

If you use WordPress, also make sure Settings > General has the correct version (with or without www) set for both WordPress Address and Site Address.

  • 488 Users Found This Useful

Was this answer helpful?

Related Articles

Do you support MySQL and PHP?

MySQL and PHP Support   Yes! Every hosting plan includes full support for PHP and MariaDB...

Can I have an account without a domain?

Hosting an Account Without a Domain Name   Yes, you can have a hosting account without...

I uploaded my site but I can not see it, why?

Uploaded My Website But It Is Not Showing   If you have uploaded your website files but your...

Can you write a script for me?

Custom Script Writing   We do not write custom scripts as part of our hosting support, but...

Does Ultra Web Hosting handle domain registration?

Domain Registration Services   Yes! Ultra Web Hosting provides a full domain registration...



Save 30% on web hosting - Use coupon code Hosting30