vang163 Posted July 23, 2008 Share Posted July 23, 2008 hi, i want to hide the web directory, how can i do so? eg. http://www.example.com/default/webpage_1.php >>>> http://www.example.com/?id=1 eg. http://www.example.com/admin/webpage_2.php >>>> http://www.example.com/?id=23 is there any online tutorial? Link to comment https://forums.phpfreaks.com/topic/116134-hide-web-directory/ Share on other sites More sharing options...
vbnullchar Posted July 23, 2008 Share Posted July 23, 2008 url-rewrite... read this http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#sec1 Link to comment https://forums.phpfreaks.com/topic/116134-hide-web-directory/#findComment-597203 Share on other sites More sharing options...
teng84 Posted July 23, 2008 Share Posted July 23, 2008 rewriteRule ^default/([A-Za-z]+)/$ /page.php?sample=$1 not tested but should work Link to comment https://forums.phpfreaks.com/topic/116134-hide-web-directory/#findComment-597204 Share on other sites More sharing options...
LemonInflux Posted July 23, 2008 Share Posted July 23, 2008 rewriteRule ^default/([A-Za-z]+)/$ /page.php?sample=$1 not tested but should work rewriteRule ^default/([A-Za-z]+)/$ /?sample=$1 ---------------- Now playing: Linkin Park - Pts.Of.Athrty (Jay Gordon) via FoxyTunes Link to comment https://forums.phpfreaks.com/topic/116134-hide-web-directory/#findComment-597256 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.