Click to See Complete Forum and Search --> : [RESOLVED] Remove www from URLS


NTICompass
01-28-2009, 12:46 PM
I want to remove the www from the beginning of my URLS. My website is at http://www.nticompassinc.com

http://www.nticompassinc.com/info.php works, but if I enter http://nticompassinc.com/info.php it redirects to http://www.nticompassinc.com

Why does this happen?

My DNS A (NAME) settings have @ and www both pointing to my webserver's IP.

Here is my .htaccess file
Options -Indexes

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

purg
02-05-2009, 07:57 PM
most likely happening in subdir
just force it....


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