add WWW to URL

Standardizing your URL is important mostly for search engines, and like that we avoid duplicate url’s for the same page.
Add this snippet to your .htacces file, and all your URL’s will have WWW

RewriteEngine On
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$$1 [L,R=301]

Share this snippet


Comments (2) - Leave yours

Leave a Reply

Your email address will not be published. Required fields are marked *

Please respect the following rules: No advertising, no spam, no keyword in name field. Thank you!