Hello all,
I'm trying to configure nginx to rewrite a subdirectory so that when any .html file is requested it is rewritten on the back end to a php args. So far I have the following:
location /subdirectory/ {
try_files $uri /subdirectory/index.php?p=$args;
}
However, whenever I request an html file it just give me a 404. I'm not sure how to tell nginx to include .html files in the rewrite. Any help is appreciated.
I'm trying to configure nginx to rewrite a subdirectory so that when any .html file is requested it is rewritten on the back end to a php args. So far I have the following:
location /subdirectory/ {
try_files $uri /subdirectory/index.php?p=$args;
}
However, whenever I request an html file it just give me a 404. I'm not sure how to tell nginx to include .html files in the rewrite. Any help is appreciated.