NGINX Wordpress Migration htaccess to conf

SYSTEM INFORMATION
OS type and version Debian 13
Webmin version 8.1.0

For NGINX users: Who want to migrate WordPress that have htaccess wordpress rulers, even try other ways, the only way I found was: open the file: /etc/nginx/sites-available/domain.conf and add the following code:

# Basic WordPress Permalink Support
location / {
try_files $uri $uri/ /index.php?$args;
}

If there is another way, probably yes in Virtualmin, please teach us here.

Regards
Kazuma

hi, i do not use wordpress

but use nginx a lot. but remember nginx does not entertain .htaccess and handles rewrites etc differently.

also Vimin (pro) version has WP Workbench which I believe will solve that.

1 Like

By default, Virtualmin configures Nginx for WordPress to work correctly during WordPress installation. If you’re migrating it manually, you should just edit the Nginx config manually.

There is that htaccess plugin for nginx, not used it myself.

Maybe this will help

But @Ilia method is best way to go.

Already did, thank you.

1 Like