嘿,伙计们,我的。htaccess文件似乎有问题。
问题:
我有一个wp安装在根目录。在子目录(不是域)中有Modx。当我输入url到根/modx的url被视为一个wp链接,它回到主页。换句话说,我认为。htaccess重写了。
主目录(wp)有这个。ht文件(在寻找解决方案后)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^office/.*$ - [PT]
# BEGIN WordPress
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
</IfModule>
子目录
RewriteEngine On
RewriteBase /cms
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
你可以在RewriteRule . /index.php [L]
RewriteCond %{REQUEST_URI} !modx