The lnmp one-click installation package I used made a 301 jump according to the built-in requirements of the program. The current situation is that XX.COM access is normal, and WWW.XX.COM access jumps to the location
The address is: XX.COM/index.php. I want to access WWW.XX.COM and jump to XX.COM. No index.php suffix?
曾经蜡笔没有小新2017-05-16 17:17:29
Go to aaa.net www.aaa.net aaa.com to www.aaa.com
server {
server_name aaa.net www.aaa.net aaa.com;
location / {
rewrite (.*) http://www.aaa.com permanent;
}
}