Microsoft
Software
Hardware
Network
Question : 301 redirect non-www to www
I am using the following to redirect
http://mysite.com
to
http://www.mysite.com
. I want to ensure that I'm doing it correctly and that it's a "permanent" redirect. (I'm still very new to such things.) It is working properly, I just want to make sure it's the correct way to do it.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite.com [NC]
RewriteRule ^(.*)$
http://www.mysite.com/$1
[L,R=301]
Answer : 301 redirect non-www to www
I would do it with a slight change:
RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
RewriteRule .?
http://www.mysite.com%
{REQ
UEST_URI} [R=301,L]
HTH
Random Solutions
Summing values based concatenated date and variable
does gotomypc work on an ipad
Image does not display
VBA to export linked tables in current Access to Db to another Access Db
SQL 2005 Standard Log Shipping - Backups
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'StateProvinceID'.
Is it possible to solve this problem.
Delphi 5 Mail Merge
#Error when sub form has no value
3 Monitors: 2 VGA, 1 DVI