nginx - How to remove index.php from the homepage URL in typecho?
習慣沉默
習慣沉默 2017-05-16 17:15:29
0
1
718

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?

習慣沉默
習慣沉默

reply all(1)
曾经蜡笔没有小新

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; 
    } 
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!