Nginx configuration for php mvc in sub directory

January 20, 2019 504 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

Be the first one to answer this question.