Some people like to Remove www on their website domain. This page teaches them to Remove www very simply.

Here are some examples of the website URLs.

Shiranweb.com
Blog.shiranweb.com
www.shiranweb.com
me.www.shiranweb.com

Some domains are using “www” and some are not. In the early days of the web, every site’s domain name was prepended with “www”. Now many sites choose to simply use the naked domain (without www). There is no huge advantage to including-it or not-including-it. There are several reasons to not use “www”, here are some:

  1. People like to Goto simple. therefor using a short way without “www”.
  2. The most common reason to discard “www” is for branding. The naked domain looks better to promotional goods or services.
  3. No difficult to add SSL and no difficult to manage the domain name.
  4. Some specialist named this as subdomain some said it is not a subdomain. People don’t like to use a subdomain for their main site, therefore they remove “www”

Remove www from domain name

Beginner can follow these steps to remove “www”. Programer needs to log Hosting account and cPanel too. Some hosts don’t want separate user and passwords to log cPanel.

Step 1

Log Host and check “Domains” section. Click on DNS and ready to edit “A” and “CNAME” Records.

take off

Step 2

Check the current “A” records. The top one name is “@”. It also has an “admin” one and “mail” one (don’t change them). Find out another “A” record which name has “www”. Then click the edit button and delete that “A” record only. This action removes www on the domain.

remove www

Step 3

Add a new CNAME record. Name/Host is “www” and Value is “@”. TTL is 1 hour or custom time. (600 Second may be good) then Click “Save”. Now you have removed “www”. But if some people still using www.yoursite.com. So that CNAME record redirects them to removed “www” domain automatically.

add cname record to redirect

Another way to take off “www”

If someone cant log the host/Domain account to change DNS they need to follow these steps to remove www. They need to can access website files by using Cpanel, FTP, or WordPress FileManager.

Step 1

Check .htaccess file in the root folder and open it to edit it. (If can’t see .htaccess please create a file on the root folder and name it as .htaccess )

Step 2

Now add the following lines to your .htaccess file to remove www. Don’t edit current codes on it and it will be lost your site. So if you lost your site after an edit or add .htaccess you can delete .htaccess. Deleting .htaccess is not case to website. It is using to support to (Apache/CPanel host only)

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

Remember to Change example.com to yours. Then save.

Step 3

After removed “WWW” from your Domain by DNS method or .htaccess site can see without “WWW”. if you are using WordPress now log WordPress and change WordPress Address (URL) and Site Address (URL) as without “www”.

Change WordPress URL without www

That’s all. Have fun with the naked domain.

Adding the www instead of remove www

Step 1

Log Host and check the “Domains” section. Click on DNS and ready to edit “A” and Cname Records.

Step 2

Check the current “A” record. Copy its Value. Example value is 198.71.233.197

add www to naked domain

Step 3

Add a new “A” record. Type “A” , Host “www” and Value (Example value) “198.71.233.197”. Set TTL is 1 hour or custom time. (600 Second may be good) then Click “Save”.

add www to naked domain by A record

Step 4

Find out Name/Host is “www” and Value is “@”. Remove/Delete that CNAME record.
Now you have added “www”.

That’s all. Have fun with the naked domain.

*Special Note.

If someone cant log the host/Domain account to change DNS they need to follow these steps to add www. They need to can access website files by using Cpanel, FTP, or WordPress FileManager.

Step 1

Check .htaccess file in the root folder and open it to edit it. (If can’t see .htaccess please create a file on the root folder and name it as .htaccess)

Step 2

Now add the following lines to your .htaccess file.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule (.*) http://www.example.com$1 [R=301]

Remember to Change example.com to yours. Then save.

Step 3

After add “WWW” from your Domain by DNS method or .htaccess site can see with “WWW”. if you are using WordPress now log WordPress and change WordPress Address (URL) and Site Address (URL) as with “www”.


People are searching for methods to “remove www” like the following.

Removing the www prefix from domain URLs
How to remove www from your URL
.htaccess Remove WWW from URL + Directories
How do I add or remove www from my domain?
How to Remove WWW from Your Website
Remove www & force https from URL using htaccess
How to remove www from both http and https
Force remove www
Removing the “www” from your domain
how to add www to the domain name in WordPress
cpanel remove www
how to remove www from domain GoDaddy
take off “www” from domain GoDaddy


LEAVE A REPLY

Please enter your comment!
Please enter your name here