Home  >  Q&A  >  body text

nginx - How to remove index.php from the homepage URL in typecho?

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?

習慣沉默習慣沉默2713 days ago723

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新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; 
        } 
    }

    reply
    0
  • Cancelreply