我在根目录中设置了wordpress,在同一级别,我还有一些其他目录,例如名为“sq”。
在下面sq 有如下子目录first, second, ... 每个子目录下都有索引。php文件。
问题是当我访问http://example.com/sq/first 它给了我404页的根wordpress。
我尝试了索引。html而不是索引。php,这是可行的。So索引。php不工作,我需要php而不是html。
我已经尝试了所有可能的谷歌更新解决方案。htaccess,但对我来说什么都不起作用。e、 我试过这个
# Include in the next line all folders to exclude
RewriteCond %{REQUEST_URI} !(sq|folder2|folder3) [NC]
RewriteCond %{REQUEST_URI} !^/(sq|mydir/.*)$
RewriteBase /sq/
我的完成。htaccess为# BEGIN WordPress
<IfModule mod_rewrite.c>
ErrorDocument 401 default
RewriteEngine On
RewriteBase /
RewriteRule ^index\\.php$ - [L]
# Include in the next line all folders to exclude
RewriteCond %{REQUEST_URI} !(sq|folder2|folder3) [NC]
RewriteCond %{REQUEST_URI} !^/(sq|mydir/.*)$
RewriteBase /sq/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
#----- START DAP -----
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} (.*)/wp-content/uploads/(.*)
RewriteCond %{REQUEST_FILENAME} !(.*)(\\.php|\\.css|\\.js|\\.jpg|\\.gif|\\.png|\\.txt|\\.ico|\\.jpeg)$
RewriteRule (.*) /dap/client/website/dapclient.php?dapref=%{REQUEST_URI}&plug=wp&%{QUERY_STRING} [L]
#----- END DAP -----
</IfModule>
# END WordPress
请帮助大家。谢谢