你如何从一个特定的目录中使用保持的.htaccess?

编程入门 行业动态 更新时间:2024-10-20 01:20:15
本文介绍了你如何从一个特定的目录中使用保持的.htaccess?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个网站,让说: 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?

本文发布于:2023-10-31 16:13:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1546607.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:目录中   htaccess

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!