Question

Nginx configuration for php mvc in sub directory

Posted January 20, 2019 791 views
Nginx Ubuntu

Need to configure below rewrite rule in Sub-directory in nginx configuration. subfolder name is example.com/interview/

location / {
rewrite ^/([^/]+)/$ /interview-category.php?hri_id=$1;
}
location /questions {
rewrite ^/questions/([^/]+)$ /hrinterview-forum.php?topic=$1;
}

any help thanks

0 answers
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!