VirusDoctor Posted December 21, 2007 Share Posted December 21, 2007 Hi guys, I was wondering... is there a way to hide the .php in a url but still make it direct to the correct page? for example: www.test.com/members.php if a user types in members it would direct to members.php but hide the .php in the url. Which would now be www.test.com/members Quote Link to comment Share on other sites More sharing options...
~n[EO]n~ Posted December 21, 2007 Share Posted December 21, 2007 http://www.sitepoint.com/article/guide-url-rewriting http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html Quote Link to comment Share on other sites More sharing options...
blackcell Posted December 21, 2007 Share Posted December 21, 2007 You can name the page as index.php and the url as the directory name. Say you want to type www.something.com/members to take you to a members area. Just create a subdirectory of your site's root dir named members and the initial page that loads within that directory as index.php. Not totally sure this is good structuring practice on the internet side but it is the way we design our web based programs at my company. Quote Link to comment 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.