Jump to content

hiding the .php


VirusDoctor

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.