- Joined
- Feb 25, 2015
- Messages
- 520
- Points
- 28
In PHP, how can I get the URL of the current page? Preferably just the parts after http://www.example.com or full URL. I can use same codes in a Wordpress page?
For example
I want to get this part
or full URL
Thanks
For example
Code:
http://www.example.com/category/this-is-my-first-post.html
Code:
category/this-is-my-first-post.html
Code:
http://www.example.com/category/this-is-my-first-post.html