[英]mod_rewrite keep rewriting recursilvely
我只想在url
加上home
但它是遞歸發生的,我讓瀏覽器說重定向過多
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteRule ^test main.html
RewriteRule rest/(.*)$ /home/rest/$1 [R=301]
</IfModule>
所以我要
localhost/rest/abc.php
至
localhost/home/rest/abc.php
回家前先去除斜線。
RewriteRule ^rest/(.*)$ home/rest/$1 [R=301]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.