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
版权声明:本文标题:php - NGINX rewrite rules for Wordpress Subdirectory Multisite to support deep URL 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736631643a1945792.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论