R
R
rasul2662021-06-15 20:23:50
1C-Bitrix
rasul266, 2021-06-15 20:23:50

CNC how to make such a link?

How to translate such a link https://site.ru/qr/index.php?id=20 into this form https://site.ru/qr/20 through the .htaccess file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tgarl, 2021-06-16
@tgarl

if it’s through htaccess, although it’s not clear why, when there is urlrewrite, then something like this (I can’t vouch for accuracy, I haven’t tested it):

RewriteRule ^qr/([^/\.]+)/?$  https://site.ru/qr/index.php?id=$1 [L]

write below RewriteEngine On

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question