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; }
Pusatpanelsmm.com 26 minutes ago |
Ezexzo.com 5 hours ago |
Insfollow.com 5 hours ago |
Offpage2052.weebly.com 6 hours ago |
Araku.co.kr 6 hours ago |