Website construction - How to customize folders and web page files in wordpress built on nginx?
为情所困
为情所困 2017-05-16 17:24:00
0
2
583

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

为情所困
为情所困

reply all(2)
给我你的怀抱

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

習慣沉默

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template