ginger44 Posted April 6, 2007 Share Posted April 6, 2007 Hello, I want two variables to be in a php script. Say this is the URL I want redirected: http://www.mysite.com/room=786876&user=67277 Room and User are the 2 variables that will be changing. I want the PHP code to look like this: http://www.mysite.com/1.php?room=whatever&user=whatever I want it so that whatever i put after the room= and before the &, and also after user=, it will go to that url. So, if http://www.mysite.com/room=whatsup&user=hello was the URL, the script would look like this: http://www.mysite.com/1.php?room=whatsup&user=hello 1.php being the code in the script. Lol I know this sounds sort of confusing, but hopefully somebody can help me out. Link to comment https://forums.phpfreaks.com/topic/45841-multiple-array-redirection/ Share on other sites More sharing options...
per1os Posted April 6, 2007 Share Posted April 6, 2007 It seems like you are trying to do an SEO friendly URL page. You want to look into .htaccess and probably google SEO Friendly URL PHP I am sure that is exactly what you want. Link to comment https://forums.phpfreaks.com/topic/45841-multiple-array-redirection/#findComment-222965 Share on other sites More sharing options...
ginger44 Posted April 6, 2007 Author Share Posted April 6, 2007 No, it's not about SEO. I want the base URL (different site) to be in the 1.php Link to comment https://forums.phpfreaks.com/topic/45841-multiple-array-redirection/#findComment-223150 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.