taith Posted January 28, 2009 Share Posted January 28, 2009 does anyone know how to do any dynamic based mod rewrites? for example: url.com/admin/usermanager/edit/5 to url.com/index.html?page=admin&op=usermanager&div=edit&id=5 as well as url.com/photogallery/4 to url.com/index.html?page=photogallery&id=4 the url can use upto 3 string, and 2 integers... and every combination/order thereof... like... url.com/4/photogallery to url.com/index.html?id=4&page=photogallery anyone know if this is even possible without writing out each possibility? Quote Link to comment https://forums.phpfreaks.com/topic/142868-mod-rewrite/ Share on other sites More sharing options...
DarkWater Posted January 28, 2009 Share Posted January 28, 2009 I'd just send the whole part after the domain name as a GET variable to index.php and have it parse it out and do whatever with it, kind of like how most MVC frameworks handle it. Quote Link to comment https://forums.phpfreaks.com/topic/142868-mod-rewrite/#findComment-748971 Share on other sites More sharing options...
taith Posted January 28, 2009 Author Share Posted January 28, 2009 aaah... fresh set of eyes... tyvm for the idea! Quote Link to comment https://forums.phpfreaks.com/topic/142868-mod-rewrite/#findComment-748984 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.