Nginx rewrite

In rewrite mode, nginx setting will affect the URL of admin panel. The official website cannot find a solution. The following code can be used.


In other locales, parse the URL


if (-f $request_filename/index.html){
	rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
	rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
	rewrite (.*) /index.php;
}

Comments

  1. Re: Nginx rewrite

    We should create a dedicated page for Nginx users. However I' not familiar with Nginx because I use solely a Apache stack.

    @nginx users:
    Who has Nginx experience and can help out writing a short guide and a drop-in rewrite example for WackoWiki.
    -> Nginx Configuration & Rewrite Guide for WackoWiki R6.1
    • WikiAdmin
    • 23.02.2022 11:26 edited