envexlabs Posted September 13, 2007 Share Posted September 13, 2007 Hey, I have a site where a website that the user gets to choose a url, ie. http://www.website.com/myname The way the site is created is the user will actually be pointed to user.php?id=4, but i want the end user to be able to just use http://www.website.com/myname How is this achieved? Thanks, envex Quote Link to comment https://forums.phpfreaks.com/topic/69186-solved-page-redirecting-problem/ Share on other sites More sharing options...
phat_hip_prog Posted September 13, 2007 Share Posted September 13, 2007 This is hard to understand! Do you want a link to be generated by request to server, or in the page via javascript? Quote Link to comment https://forums.phpfreaks.com/topic/69186-solved-page-redirecting-problem/#findComment-347733 Share on other sites More sharing options...
envexlabs Posted September 13, 2007 Author Share Posted September 13, 2007 Hey, Sorry, it's early in the morning so store a, has chosen the name of boom. user a. likes the store, so he wants to visit it. user a. types in http://www.website.com/boom now, http://www.website.com/boom actually links to http://www.website.com/store.php?id=1 I need to know how to make http://www.website.com/boom point to http://www.website.com/store.php?id=1 Quote Link to comment https://forums.phpfreaks.com/topic/69186-solved-page-redirecting-problem/#findComment-347736 Share on other sites More sharing options...
pocobueno1388 Posted September 13, 2007 Share Posted September 13, 2007 I'm pretty sure you will need mod_rewrite. Quote Link to comment https://forums.phpfreaks.com/topic/69186-solved-page-redirecting-problem/#findComment-347737 Share on other sites More sharing options...
envexlabs Posted September 13, 2007 Author Share Posted September 13, 2007 Thanks, I will look into it! Quote Link to comment https://forums.phpfreaks.com/topic/69186-solved-page-redirecting-problem/#findComment-347752 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.