I haven't paid much attention to the jump problem of this website. By chance, a friend said that my website www.45it.com and 45it.com didn't do 301. This is really the case. Although the main domain name of the website is set to www.45it.com, when 45it.com is accessed, it will not jump. So add the following code in .htaccess, perfect for apache to transfer other domain names (such as domain names without www) to the domain name with www, record it for sharing. The code is as follows:
Environment:
System Windows Apache 2.2
The code we want to implement is as follows
Code is as follows Copy code
RewriteEngine on RewriteCond %{HTTP_HOST} 45it.com [NC] RewriteRule ^(.*)$ http://www.45it.com/$1 [L,R=301]
If you don't have mod_rewrite, you can set mod_alias:
Copy the code
RedirectMatch 301 ^(.*)$ http://www.45it.com
Friendly Tips
Load Rewrite Module:
In the conf directory Found in httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so
In this sentence, remove the preceding comment symbol “#”, or add this sentence.
If you want to view the number of IIS concurrent connections, the easiest and conv
As Web servers are being targeted by more and more hackers and worm m
SNMP (Simple Network Management Protocol, simple protocol for server operation and maintenance, serv
The full name of VPN in English is “Virtual Private Network”, which translates to
Reference Implementation of Server Load Balancing in Virtualized Environment
A case where the server security dog caused an ASP.NET website to run incorrectly
How large is the server 1U size?
SMEs need to count the account of the hosting server
Server rent and hosting price disparity How to weigh the pros and cons?
IIS installation and solutions to common problems
Mail server software MDaemon uses skill
Configure the WSUS server client computer for automatic update
Prohibit Win7 sloshing to help you save system resources
Win8 does not recognize the newly added USB device
Windows 2008 R2 remote desktop authorization configuration graphic tutorial
Win10 10547 often error restart problem solution
Three power modes for Windows 7
How to open pdf file and modify under win10 system
Win8 serial experience fifth episode hidden gadgets secret! (4)
User name and password saved in Sogou browser view tutorial
How to display control panel icons on Windows 8 desktop
Win7 system IE temporary folder storage path detailed description