我有一个网站,让说: www.example/
I have a website, lets say: www.example/
我用重写模块,但我有一个子文件夹 forum.example
I'm using rewrite module, but I have a subfolder forum.example
我不希望的.htaccess 来影响这个目录,我怎么办呢?
I don't want the .htaccess to affect this directory, how do I do it?
推荐答案如果你的 forum.domain 点,像你这样的一个子目录建议(和你的电流的.htaccess 文件是在包含目录的子目录,或者上面的某个目录),那么所有你需要做的就是增加一个的.htaccess 与下面的子目录中的文件:
If your forum.domain 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?
发布评论