Jump to content

Run PW in subdirectory at nginx, but return 404?


taoguang
 Share

Recommended Posts

Now I add a PW on my domain. It runs OK.

Then I have a second demo PW running under /demo/ subdirectory.

and adding these code to nginx rewrite:

location /demo/ {
    try_files $uri $uri/ /demo/index.php?it=$uri&$args;
}

Then I access the subdirectory's homepage(/demo/) is OK, other page return a 404 error.

But I replaced the other cms to /demo/, It's really OK. Why?

How to fix these errors?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...