Sorry to ask the most basic question, but I've seen this done both ways.
For the simple .htaccess rewrite (eliminate www.) should I use the backslash?
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com$1 [L,R=301]
or
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
On one host they both seem to work, so which is better to use 'all the time'?
Thank you
For the simple .htaccess rewrite (eliminate www.) should I use the backslash?
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com$1 [L,R=301]
or
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
On one host they both seem to work, so which is better to use 'all the time'?
Thank you