This is my .htaccess file
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]
This is my php file
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';}
?>
this problem is that when i click the first link(aaa) it open well with the url(https://localhost/Make/Mak)
but when i click it again, it show object not found with the url (https://localhost/Make/Make/Mak).
Please can anybody help me with why it is duplicating the first parameter?
I tried it with three parameters, it duplicated the first and the second parameters
Thank you for your time in anticipation