no www.

How Lose www. in front of the name of a domain / subdomain? Transformation www.domeniu.tld in domeniu.tld .

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

Editing the .htaccess from the subdomain webroot "sleepy", With the above lines, is the simplest example of forwarding traffic from www. in subdomain , Keeping the location of their access, valid.

Example:

http://www.somnoros.stealth…ry/want-a-baby /

http://somnoros.stealth…ry/want-a-baby /

Without www. you'll still get a chicken and besides that, traffic.

The same is true for domains that have www. by default.

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

Procedure declaration is important as a domain name search engines ( SEO ) and web browsers. A site that works simultaneously with the same content on two addresses, it is possible to obtain a PR ( Google Page Rank ) Split.

Example:

https://stealthsettings.com ( PR3 )

https://stealthsettings.com ( PR1 )

From what I noticed a domain without www. it is indexed much faster. We give up www. ? ;-)

Passionate about technology, I enjoy writing on StealthSettings.com since 2006. I have a rich experience in operating systems: macOS, Windows, and Linux, as well as in programming languages and blogging platforms (WordPress) and for online stores (WooCommerce, Magento, PrestaShop).

How to » Internet » no www.
Leave a Comment