How to know what is exactly the "@" sign or "%40" comes up in the URL?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
At first glance, the question is simple.. How to determine exact URL in PHP, which is displayed in the browser?

Illustrative example.

There is a link of this kind leads to the page user

On the server following code, which just displays the current URL


The result is obvious

But if I replace the sign "@" with "%40" in the link (which is the same sign) then the result is the same.

The result:

The goal is to understand if the URL of the form make a redirect to

Maybe check/redirect should be put earlier on the side of nginx/apache?
by | 7 views

2 Answers

0 like 0 dislike
0 like 0 dislike
RewriteRule ^%40(.*) /@$1 [QSA,L]

Related questions

0 like 0 dislike
1 answer
asked Apr 9, 2019 by sys_user
0 like 0 dislike
7 answers
0 like 0 dislike
2 answers
asked Apr 12, 2019 by BenderLib
110,608 questions
257,186 answers
35,533 users