Forum Moderators: phranque
I'm still developing the site so I haven't tested this, but I think this should work:
RewriteCond %{HTTP_HOST} ^www.domain\.com
RewriteRule ^(.*)$ [domain.com...] [R=301,L]
Does that look OK? Also, is there anything I need to do in setting up DNS to make sure I have the right settings for domain.com? I'm using WHM/cPanel...I just got a reseller account and this is the first time I've had that much control.
RewriteCond %{HTTP_HOST} ^www.*$
RewriteRule ^.*$ [domain.com$0...] [R=301]
The differences:
I use $0 at the end of Rewriterule, but perhaps $1 will work the same.
No slash before $0.
The ",L" isn't necessarry if you haven't got more rewrites after that.