我怎样才能让字preSS停止permalinking非WP目录? [英] How can I make wordpress stop permalinking non wp directories?
问题描述
我怎样才能让我的WP安装停服了,它有没有关系?目录
我有一个目录,通过HT这就是访问密码保护,当它不是受保护的,我可以访问它,但是现在,它是,它引发了我可湿性粉剂404页。
这是现有的WP htaccess文件
#BEGIN字preSS
< IfModule mod_rewrite.c>
RewriteEngine叙述上
的RewriteBase /
的RewriteCond%{} REQUEST_FILENAME!-f
的RewriteCond%{} REQUEST_FILENAME!-d
重写规则。的index.php [L]
< / IfModule>
#结束字preSS
目录IM试图保护是
/软件/开发/
字preSS只能踢的时候,要求的目录或文件不存在,所以我假设你是依靠FancyIndexing得到 /软件/开发
的目录列表?如果是这样,那么你应该能够坚持一个的.htaccess
文件在该目录关闭请求改写:
< IfModule mod_rewrite.c>
RewriteEngine叙述关闭
< / IfModule>
How can i make my WP install stop taking over directories that it has nothing to do with?
I have a directory thats password protected via ht access and when it wasnt protected, i could access it, but now that it is, it throws me a WP 404 page.
this is the existing wp htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
The directory im trying to protect is
/software/development/
WordPress should only kick in when the requested directory or file doesn't exist, so I'm assuming that you were relying on FancyIndexing to get a directory listing of /software/development
? If so, then you should be able to stick a .htaccess
file in that directory to turn off request rewriting:
<IfModule mod_rewrite.c>
RewriteEngine Off
</IfModule>
这篇关于我怎样才能让字preSS停止permalinking非WP目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!