Forum Moderators: phranque
http://localhost/background/category/id.html
I'm assuming one way is to get the url and get the id part out minus the html.
Tried the below just to see if I can get the url, but nothing shows.
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
echo $url;
Is there anything more simple?
Thanks.
[edited by: Walley at 5:13 am (utc) on May 1, 2009]
Don't know the reason but I just added a different letter to it and it made a difference. Maybe because I two rewrites with the same name but their different pages.