When I navigate to aртем.example.com
, the web browser will convert the URL to xn--a-jtbvok.example.com
. Is there a way to convert xn--a-jtbvok
back to aртем
using PHP?
Currently I am using $_SERVER['HTTP_HOST']
to fetch the requested URL.
Live examples here: aртем.lekintepls.se and åäö.lekintepls.se.
I have no idea what this phenomena is called, so I'm sorry if this is a duplicate.