I've these lines in .htaccess
file:
RewriteCond %{HTTP_COOKIE} ^.*ddl=([^;]+);\sddc=([^;]+).*$ [NC]
RewriteCond %1 =%2
RewriteRule .* index.php?ddc=%2&ddl=%1 [L]
%{HTTP_COOKIE}
conaitns ddl=123456; ddc=123456
.
When I go through a URL it doesn't work as expected above. But if I change second line to RewriteCond %1 !=%2
it goes to index.php
. In that file I did a var_dump($_GET)
and output was this:
array(2) { ["ddc"]=> string(6) "123456" ["ddl"]=> string(6) "123456" }
My question is that, so why RewriteCond %1 =%2
doesn't work as it should!