CaraDoPastelDaSuaRua Posted March 4, 2023 Share Posted March 4, 2023 I want to be like this: website.com/user/['userid'] I want to make a page that with the id of the user on the url you can acess the profile:D Quote Link to comment https://forums.phpfreaks.com/topic/315976-how-do-i-make-a-page-of-user-like/ Share on other sites More sharing options...
ginerjm Posted March 5, 2023 Share Posted March 5, 2023 (edited) Something like: website.com/user?id=xyz ? Although you may have to include the script name before the ? As in website.com/user/index.php?id=xyz Edited March 5, 2023 by ginerjm Quote Link to comment https://forums.phpfreaks.com/topic/315976-how-do-i-make-a-page-of-user-like/#findComment-1606210 Share on other sites More sharing options...
requinix Posted March 5, 2023 Share Posted March 5, 2023 First create the /user/index.php (or whatever you want to call it) like ginerjm suggested, then use URL rewriting to take a request that looks like /user/X and rewrite it to /user/index.php?id=X. Quote Link to comment https://forums.phpfreaks.com/topic/315976-how-do-i-make-a-page-of-user-like/#findComment-1606211 Share on other sites More sharing options...
CaraDoPastelDaSuaRua Posted March 20, 2023 Author Share Posted March 20, 2023 Thx u guys i did thx! Quote Link to comment https://forums.phpfreaks.com/topic/315976-how-do-i-make-a-page-of-user-like/#findComment-1606646 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.