: Why is www. working but no-www is not? Right now my site runs on http://www.example.com but I need to run that without www also i.e example.com Can some body tell me here that how can i
Right now my site runs on www.example.com but I need to run that without www also i.e example.com
Can some body tell me here that how can i do that?
More posts by @Pierce454
1 Comments
Sorted by latest first Latest Oldest Best
This is very simple using .htaccess file.
You just need to place following lines in your .htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ example.com/ [R=301,L]
You would have to place .htaccess file on root of your site.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.