P
P
Petro Boyko2018-12-14 15:24:32
htaccess
Petro Boyko, 2018-12-14 15:24:32

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

1 answer(s)
V
Viktor Taran, 2018-12-14
@shambler81

GET is not part of the url
RewriteCond %{QUERY_STRING} get parameter here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question