Answer the question
In order to leave comments, you need to log in
How to convert GET request to CNC?
Good afternoon!
Due to get links, I can't use sharer.php from various social networks correctly.
I managed
to convert this url https://my-web.com/index.php?page=news&id=22 to https://my-web.com/news?id=22
using .htaccess
RewriteEngine on
RewriteCond %{QUERY_STRING} ^id=(.*)$
RewriteRule ^(.*)$ https://my-web.com/index.php?page=news&id=%1 [L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question