Hey all, I wasnt sure if I should post this here or mod_rewrite.. Anyway, how can we get the actual URL displayed in the users browser window. I need to get this and not the url prior to mod_rewrite for redirect reasons.. Everything I do seems to get the prior mod_rewrite url IE: www.#.com/users.php?bleh=1 But I want: www.#.com/users/1 which would be displayed to the User ---- Any ideas? Of course I could write my own class to accomplish this -- Im just trying to save myself some heartache
Try $_SERVER['REQUEST_URI'] or $_SERVER['REDIRECT_URL'] I just threw up a quick page, used print_r($_SERVER); and found it in there