Jump to content

Hide .php extension like digg does


JustinK101

Recommended Posts

I know this inst exactly php related, but sortof. :) LOL

 

I have seen a lot of sites recently that hide the .php extension, for example they might have a url of: http://www.mydomain.com/page1

 

How are they doing this? I dont think page1 is a folder, I think it is acutally a php file named page1.php but they can hide the extension. I think diggg.com does this. How is this done? Thanks.

Link to comment
https://forums.phpfreaks.com/topic/68973-hide-php-extension-like-digg-does/
Share on other sites

I think you just set it as the index file, so it uses "page1" instead of "index.php".

 

Or you could just make a folder named "page1" and put an "index.php" in it. This way it will work on all webservers without having to change any configuration, and best of all the functionality will work exactly the same. =)

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.