3 ms·
A more efficient and search-engine friendly approach is to perform a 301 redirect. For a single site, in Apache this would look like RewriteEngine On R
by sciurus 15y ago
A more efficient and search-engine friendly approach is to perform a 301 redirect. For a single site, in Apache this would look like
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]