Jump to content

Removing .php and other exentions from urls


mcslug

Recommended Posts

Is there a way to remove .php or .html, or .whatever extentions from the url bar when users visit pages on mysite? For example, if a user goes to www.mysite.com/edituser.php it shows the url as:
www.mysite.com/edituser.php

I don't want the .php to be visible to the users. How would I remove extensions from web urls?

Right now for a user to go directly to the edituser page they have to type in the entire url:
www.mysite.com/edituser.php

I know I can set up a virtual directory or entry for edituser that will redirect to edituser.php, but the url bar will still show www.mysite.com/edituser.php

I know mod_rewrite will most likely be involved, but the examples I've read haven't helped.

Any help is greatly appreciated!
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.