. htaccess复制我的链接


.HTACCESS duplicating my link

这是我的。htaccess文件

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)$ index.php?id=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^([^/]+)/([^/]+)$ index.php?id=$1&iff=$2 [L]
这是我的php文件

index . php

<?php
   $ll1=$_GET["id"];
   $ll12=$_GET["iff"];
?>
<a href="Make/Mak">aaa</a><a href="Make"> bbb</a>
<?php 
if($ll1=="Make" && $ll12=="Mak"){include 'shop/index.php';} 
elseif($ll1=="Make"){include 'shop/productpreview.php';} 
?>

这个问题是,当我点击第一个链接(aaa)它打开好与url(https://localhost/Make/Mak)

但是当我再次点击它时,它显示对象没有找到url (https://localhost/Make/Make/Mak)。

谁能告诉我为什么它重复第一个参数?

我尝试了三个参数,它复制了第一个和第二个参数

感谢您的光临

试着给你的href像/Make/Mak