Answer the question
In order to leave comments, you need to log in
How to write a link in htaccess?
Tell me how to set up a link in htaccess ,
so it doesn’t work
like this when you navigate through pages
RewriteRule ^(.*).html$ index.php?alias=$1 [L,QSA]
and a link like this doesn’t work
site.ru/alias .html?id=4
RewriteRule ^id=([0-9]*).html$ index.php?alias=id=$1 [L]
#RewriteRule ^id=(.*).html$ index.php?alias =id=$1[L]
Answer the question
In order to leave comments, you need to log in
GET is not part of the url
RewriteCond %{QUERY_STRING} get parameter here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question