我在本地wamp服务器上安装了wordpress多站点:localhost / wp /
在wordpress安装文件夹的根目录中,我创建了一个包含自定义php文件的文件夹:localhost / wp / demo /.
当我尝试从localhost / wp / demo / index.php访问此文件夹时,它的工作正常但当我尝试从:localhost / wp / test / demo / index.php访问时,我不查看页面,但默认页面来自localhost / wp / test /...
我的.htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp/
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteRule ^([_0-9a-zA-Z-]+/)?demo$ /demo/$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPress