Melvinchii Posted November 16, 2011 Share Posted November 16, 2011 Hello everyone! I have a quick question I hope. I'm just getting started in the world of MVC with PHP. I'm not using an MVC framework. The question I have is I'm wondering how do I get the virtual directory look in the URL. Right now i'm passing everything though my index that delegates the requests to the correct locations but I'm still left with http://site_name/?s=bla. What I'm looking for is http://site_name/site_section/?s=bla or something along those lines. Any advise would be great! Quote Link to comment https://forums.phpfreaks.com/topic/251224-mvc-virtual-directories-i-think/ Share on other sites More sharing options...
trq Posted November 16, 2011 Share Posted November 16, 2011 You can use apache's mod_rewrite to rewrite url to look however you like. Quote Link to comment https://forums.phpfreaks.com/topic/251224-mvc-virtual-directories-i-think/#findComment-1288560 Share on other sites More sharing options...
Melvinchii Posted November 16, 2011 Author Share Posted November 16, 2011 Thanks! I will look into it. Quote Link to comment https://forums.phpfreaks.com/topic/251224-mvc-virtual-directories-i-think/#findComment-1288564 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.