Jump to content

Removing the .php extension


darthomir

Recommended Posts

Hi. I'd like to do this on my site: to have an url such as www.google.com/index which would equal to www.google.com/index.php
I mean that I don't want to type the .php extension for my php files. So, if there is no extension, add the .php and load the php file (if possible, do not display the .php). I'm sure its possible with an htaccess file, but not sure how to do it exactly (something with mod_rewrite for sure).

THx!
Link to comment
https://forums.phpfreaks.com/topic/3775-removing-the-php-extension/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.