[英]mod_rewrite keep rewriting recursilvely
I just want to append the url
with home
but it is happening in recursion and i get the browser saying too many redirects 我只想在url
加上home
但它是递归发生的,我让浏览器说重定向过多
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteRule ^test main.html
RewriteRule rest/(.*)$ /home/rest/$1 [R=301]
</IfModule>
so i want 所以我要
localhost/rest/abc.php
to 至
localhost/home/rest/abc.php
回家前先去除斜线。
RewriteRule ^rest/(.*)$ home/rest/$1 [R=301]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.