mcslug Posted June 21, 2006 Share Posted June 21, 2006 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.phpI 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.phpI 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.phpI know mod_rewrite will most likely be involved, but the examples I've read haven't helped.Any help is greatly appreciated! Quote Link to comment Share on other sites More sharing options...
dptr1988 Posted June 24, 2006 Share Posted June 24, 2006 If don't want any filenames, you can create a folder for each page and put an index.php in that folder. Or if you don't want the .php extenstion you can change you AddType directive for application/x-httpd-php. 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.