Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 忽略基本htaccess重写规则_.htaccess_Mod Rewrite - Fatal编程技术网

.htaccess 忽略基本htaccess重写规则

.htaccess 忽略基本htaccess重写规则,.htaccess,mod-rewrite,.htaccess,Mod Rewrite,非常简单的htaccess重写规则查询,但它不起作用 URL: http://dev.mypage.com/one/ RULE: RewriteRule ^one/$ /new/url/ [R=301,L] 没有显示错误,只是重定向不起作用 URL: http://dev.mypage.com/one/ RULE: RewriteRule ^one/$ /new/url/ [R=301,L] mod_重写模块存在 也许我还需要点什么 试试: RewriteEngine on RewriteR

非常简单的htaccess重写规则查询,但它不起作用

URL: http://dev.mypage.com/one/
RULE: RewriteRule ^one/$ /new/url/ [R=301,L]
没有显示错误,只是重定向不起作用

URL: http://dev.mypage.com/one/
RULE: RewriteRule ^one/$ /new/url/ [R=301,L]
mod_重写模块存在

也许我还需要点什么

试试:

RewriteEngine on
RewriteRule ^one/?$ /new/url/ [R=301,L]
虚拟主机不会继承重写配置。这意味着 您需要为每个虚拟机启用重写引擎 要在其中使用重写规则的主机。


请显示完整的
.htaccess
文件。