NYCPHP Meetup

NYPHP.org

[nycphp-talk] Removing www.

Chris Shiflett shiflett at php.net
Wed Feb 7 20:16:57 EST 2007


Joseph Crawford wrote:
> Hey guys, what would i need to do in order to make all of the
> www. be removed from my urls?

>From http://no-www.org/:

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

Hope that helps.

Chris

-- 
Chris Shiflett
http://shiflett.org/



More information about the talk mailing list