How to get self URI/URL?
-
I’m planning to do a redirection in my blog and I need to get the URL of the actual page, how can I do that?
When I’m on mysite.com/wp/index.php I need to get exactly <b>index.php</b>, when I’m on mysite.com/wp/index.php?paged=1 I need to get <b>index.php?paged=1</b>, and also when I’m on mysite.com/wp/?page_id=7 I need to get <b>?page_id=7</b>.
The redirection code is in the header (header.php) and it is the place where I have to get the URI/URL so my script can work…
Any help would be appreciated… Thanks in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘How to get self URI/URL?’ is closed to new replies.