najeeborg Posted January 11, 2010 Share Posted January 11, 2010 hi, i have a question to ask. is there any other way that you can have variable in url rather than Get method? cause when using GET method, it displays something like this: www.lalalala.com/index.php?var=1 instead of like that, i wanna make something like www.lalala.com/1 where 1 is the variable and it will display something with ID=1. is this possible? thank you. Link to comment https://forums.phpfreaks.com/topic/188001-variable-in-url/ Share on other sites More sharing options...
trq Posted January 11, 2010 Share Posted January 11, 2010 You can use a module for Apache called mod_rewrite to rewrite urls such as www.lalala.com/1 to point to www.lalalala.com/index.php?var=1. It has nothing to do with php however. Link to comment https://forums.phpfreaks.com/topic/188001-variable-in-url/#findComment-992528 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.