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! 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. 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. 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
Archived
This topic is now archived and is closed to further replies.