Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-19 18:10:40

firago
Member
Registered: 2005-01-03
Posts: 54

removing the "www." prefix from web server addresses

I was wondering if it was possible to remove the “www.” from the web addresses by tweaking the .htaccess file like John Gruber has done. I tried to do it myself but it seems like the Rewrites seem to be conflicting, and it does not work. Thank you for any help yall have.

Offline

#2 2006-07-19 19:15:40

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: removing the "www." prefix from web server addresses

Take a look at Sitepoint’s <a href=“http://www.sitepoint.com/forums/showthread.php?t=356031”>Google FAQ</a> under Why does my website have a higher PR with the ‘www’ then without it?

Cheers Martin

Offline

#3 2006-07-19 21:06:36

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: removing the "www." prefix from web server addresses

Just insert the following after RewriteEngine On in you .htaccess file:

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

no-www.org

Offline

#4 2006-07-21 01:52:48

firago
Member
Registered: 2005-01-03
Posts: 54

Re: removing the "www." prefix from web server addresses

thank you for the help, it worked and I am very grateful for your help.

Offline

Board footer

Powered by FluxBB