admin管理员组

文章数量:1124674

I'm trying to setup a Wordpress Subdirectory multisite that can support deep urls. By deep urls, I mean the the sites should be able to have more nested parts. E.g

I was able to achieve this with using Paulhund's tutorial but this guide works only for Apache servers. How can this be adapted for NGINX servers? Here's a snippet of my .htaccess code below. Also if there is a different approach to achiveing this in general, I'm open to suggestions. Thanks.

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule  ^(.+)?/(wp-.*) /$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

本文标签: phpNGINX rewrite rules for Wordpress Subdirectory Multisite to support deep URL