View source for 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;
}
%%