How to remove www from URL? This article depicts how to add or kill the www prefix in your space’s URLs. For example, if customers type www.example.com in their projects, you can subsequently redirect them to example.com, or the opposite way around.

arz

For Search Engine Optimization (SEO) purposes, it is attractive to have a site respond just to http://www.example.com or http://example.com, not both. Something different, web lists see duplicate substance on the www and non-www regions and may limit the site page situating.

Killing the www prefix from space URLs

How to remove www from URL? You can normally kill the www prefix from your space’s URLs by using Apache redo rules in a custom .htaccess report.

To do this, how to remove www from the URL? follow these methods:

  1. Make a .htaccess archive in your public_html list. If you as of now have a .htaccess record in the public_html index, you can change it.
  2. Reorder the going with lines of text into the .htaccess report:
  • # Remove www from any URLs that have them:
  • RewriteEngine on
  • RewriteCond %{HTTP_HOST} ^www\.
  • RewriteRule ^ (. *) $ http://example.com/$1 [R=301, L]
  1. Override example.com in the last line of text with your own domain name.
  2. Save the .htaccess report.
  3. To test the arrangement, use your web program to visit http://www.example.com, where example.com addresses your domain name. The program should be redirected to http://example.com.

In any case, shouldn’t something be said about security?

As some of you pointed out in the comments, there are some security concerns when you decide to use a non-www-type URL.

How to remove www from URL? In case you run a wide scope of organizations on subdomains, you hazard splitting treats between your rule, non-www point of arrival, and said organization. This may really be terrible if certain sensitive data is being taken care of in treats that you would rather not be talked to outcasts.

Does keeping or killing WWW influence SEO rankings?

How to remove www from URL? You might have a request for using it or not will influence your SEO. In light of everything, the fitting reaction is NO. It is essentially the issue of tendency/feel.

Anyway, I propose carrying out this more notable improvement around the beginning of your startup. Recollect that you are changing the URL. Thusly, changing it later may hurt your SEO rankings.

How to Set Preferred Domain in Google Webmaster Tools?

  • Open Google Webmaster Tool.
  • Sign in to your record.

Check, your space in case you have not done it already. How to remove www from URL? In like manner, support the other variation by a comparable association.

  1. Go to Site course of action > Settings > General Settings.
  2. Set your supported space. Google gives two other options.
  3. Show URLs as www.domain-name.com
  4. Show URLs as domain name.com. Set Accordingly.
  5. Save the changes.

Conclusion

As I referred to before, you basically need to change game plans. How to remove www from URL? Do whatever it takes not to worry about security and SEO rankings. Google Webmaster Tools will manage all the SEO stuff. In like manner, read how to Clean Your Bad Backlink to keep your site SEO clean.

Share.