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
How to move ost file to different MS Exchange 2003 server?
How to implement Email Sender using .Net C# Windows services
Parallels 5 Mouse Issue
interested in any schematic showing the proper hookups for LED wires for MSI Motherboard Model KM4M
inventory volume licence key on network
Count in a Query
Unzip files in a nested directory.
Dell 5310n - Additional tray not showing in printer settings
T-SQL while loop
PHP Query for asterisk phone system - How to display live data from this query