In WordPress when I use the php call:
$_SERVER["SCRIPT_NAME"]
the result is:
/index.php
when the page is actually:
/mypageslug/
The problem is that I need to read the URL and have it return /mypageslug/. Is there a way to do this?
Thanks in advance for your response.