How do I remove www from my website's URL ?

Requested and Answered by Hervet on 2006/8/15 15:02:49

How do I remove www from my website's URL ?

If your website is runing under Apache, you can create (or add) a simple .htaccess file and type this content :

<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
RewriteCond 
%{http_host} ^www.example.com[nc]
RewriteRule ^(.*)$ http://example.com/$1 [r=301,nc]
IfModule>
Don't forget to replace http://example.com with your site's URL. This tip come from vortexmind.

This Q&A was found on XOOPS Web Application System : https://xoops.org/modules/smartfaq/faq.php?faqid=618