问题描述
我有一个网站,让说: http://www.example.com/
I have a website, lets say: http://www.example.com/
我用重写模块,但我有一个子文件夹 forum.example.com
I'm using rewrite module, but I have a subfolder forum.example.com
我不希望的.htaccess
来影响这个目录,我怎么办呢?
I don't want the .htaccess
to affect this directory, how do I do it?
推荐答案
如果你的 forum.domain.com
点,像你这样的一个子目录建议(和你的电流的.htaccess
文件是在包含目录的子目录,或者上面的某个目录),那么所有你需要做的就是增加一个的.htaccess
与下面的子目录中的文件:
If your forum.domain.com
points to a subdirectory like you suggested (and your current .htaccess
file is in the directory that contains that subdirectory, or some directory above it), then all you have to do is add a .htaccess
file in the subdirectory with the following:
RewriteEngine Off
和将禁用的mod_rewrite
为指向该目录的任何请求。
And it will disable mod_rewrite
for any requests that point to that directory.
这篇关于你如何从一个特定的目录中使用保持的.htaccess?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!