1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
location / { 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; } try_files $uri $uri/ /index.php?&$args; } location /wordpress { try_files $uri $uri/ /wordpress/index.php?$args; } location ~ \.php$ { fastcgi_split_path_info ^(/wordpress)(/.*)$; } rewrite /wp-admin$ $scheme://$host$uri/ permanent; |
Comment