2017-09-16 20:37:13 +00:00
|
|
|
# WPSUBDIRECTORY NGINX CONFIGURATION
|
|
|
|
# DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE Webinoly
|
2018-06-22 14:53:29 +00:00
|
|
|
|
2017-09-16 20:37:13 +00:00
|
|
|
if (!-e $request_filename) {
|
|
|
|
# Redirect wp-admin to wp-admin/
|
|
|
|
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
|
|
|
|
# Redirect wp-* files/folders
|
|
|
|
rewrite ^(/[^/]+)?(/wp-.*) $2 last;
|
|
|
|
# Redirect other php files
|
|
|
|
rewrite ^(/[^/]+)?(/.*\.php) $2 last;
|
|
|
|
}
|