Enter a URL
If a website is accessible with both a www and a non-www link, a 301 redirect to the preferred domain should always be set up. The HTTP status code 301 - moved permanently - indicates to browsers that a requested file has been permanently moved to a different URL and that the entered URL is no longer valid.
Here are some of the tips based on your server configuration.
Solution 1:- Using .htaccess file
RewriteEngine On RewriteCond %{HTTP_HOST} !^www.example.com$ RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Solution 2:- Using Apache virtual host
<VirtualHost *:80> : ServerName example.com : Redirect permanent / http://www.example.com/ </VirtualHost> <VirtualHost *:80> : ServerName www.example.com : # real server configuration </VirtualHost>
Solution 3:- For nginx server
server { # Permanent redirect to www server_name domain.com; rewrite ^/(.*)$ http://www.domain.com/$1 permanent; }
Zeizzu.com 49 minutes ago |
Smt-group.ru 4 hours ago |
Rr-6059.blogspot.com 1 day ago |
Jozzeby.blogspot.com 1 day ago |
Dfggfd28.blogspot.com 1 day ago |