How To add www before the my website

pls suggest How To add www before the my website.

Welcome to the forums, @allindiasarkarijobsc.

Assuming your server is using Apache, you can add this to the .htaccess file:

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

well you just write www. before your website name!?

You might need to add a bit more to your question as we won’t really know what you problem is.

I am assuming the problem is that it reverts to a non-www name, which is probably due to something like .htaccess file telling any request to be served without the www.

Why do you want www.? google doesn’t care as long as you serve with or without and remain consistant. Anyone writing www.example.com will get to the right place without the www.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.