I have the URL of www.domain.com/profile/user123 (where user123 will vary for each user profile viewed).
How can I get 'user123' into a variable in PHP? I just need to get the very last part of the URL. I don't want to use ? as part of the URL, but right now I'm getting a 404 because the URL doesn't exist.
I'm not sure if I need to modify the .htaccess file? The only modification I have in it so far is to remove .php requirement in URL.