manalnor Posted March 4, 2011 Share Posted March 4, 2011 Hello dear friends and happy friday to all, I've question which really hurts me feeling long time ago and made alot of searching but can't find answer. let say we have $id and $do both are anything $id = "any"; $do = "foo"; And we have link in that looking yoursite.com/index.php?id=$id Now what is the command i should write or write in .htaccess file so make it when i call the following link yoursite.com/$id/$do be the same as if i called the original link which is yoursite.com/index.php?id=$id Note :- if it not possible then will if be possible in next way or yoursite.com/$do/$id Thanks for help ! Link to comment https://forums.phpfreaks.com/topic/229574-what-is-the-command/ Share on other sites More sharing options...
beegro Posted March 4, 2011 Share Posted March 4, 2011 What you're talking about looks like ModRewrite. However, I'm missing how $do is working into a re-write of yoursite.com/index.php?id=$id into yoursite.com/$id/$do Link to comment https://forums.phpfreaks.com/topic/229574-what-is-the-command/#findComment-1182874 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.