Forum Moderators: phranque
1) Should I leave NS with the registrar and point an A record to my VPS IP?
2) If so, what about the other DNS records? Do I change those with the domain registrar (Fasthosts) or on the VPS via Plesk?
[edited by: phranque at 10:34 am (utc) on Jul 17, 2013]
[edit reason] exemplified domain and IP [/edit]
Redirect 301 / http://example.com/
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.com
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(example\.com)?$
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] you should never mix them within a server configuration, especially if you are using mod_rewrite to internally rewrite urls as you would with most CMSs.
however, if you have another redirect in example.com's .htacccess you've got multiple hops, which could be avoided if you used a single VirtualHost and a ServerAlias.