Wordpress index.php rewrite

Hello,

In my current Wordpress setup I’ve got this nginx rewrite

location ~* .php$ {
include fastcgi;
}
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php last;
}

that removes index.php and makes perma links nice.
I’m trying to move my sites to virtualmin management, but I can’t figure out where in the settings I’d put the same config.

In the dashboard, under Webmin section, just go to Servers > Nginx Webserver > Edit Configuration Files and choose the relevant file from the dropdown.

2 Likes