Home  >  Q&A  >  body text

Website construction - How to customize folders and web page files in wordpress built on nginx?

For example, the domain name of my wordpress site is www.xxx.com. How can I create a folder on the vps such as projects, put a demo.html file in it, and also reference ../css/all.css? Such a file allows you to access www.xxx.com/projects/demo.html by entering the URL

为情所困为情所困2713 days ago530

reply all(2)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-16 17:26:00

    Just put the projects in the directory of the workpress site. It is the directory where wp-login.php exists.

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-16 17:26:00

    alias can meet your needs, such as

    location /projects/ {
        alias /home/html/projects/;
    }
    

    Then when accessing www.xxx.com/projects/demo.html, you don’t go to the location specified by root, but /home/html/projects

    reply
    0
  • Cancelreply