Showing Website Empty Directories as Front Page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
techkid
Forum Commoner
Posts: 54
Joined: Sat Sep 05, 2009 11:18 pm
Location: Maldives

Showing Website Empty Directories as Front Page

Post by techkid »

Hello,

I have seen some people doing this, showing empty directories as the home page of the website.

For example see this:
http://wonderlandtours.com/sfvdxgbdcgfn

It shows the Frontpage of the website. How do we do this? or is it using .htaccess or something else?

Thank you
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Showing Website Empty Directories as Front Page

Post by Jonah Bron »

Looks like they set the 404 page as the home page in their server configuration. Are you using Apache?
User avatar
techkid
Forum Commoner
Posts: 54
Joined: Sat Sep 05, 2009 11:18 pm
Location: Maldives

Re: Showing Website Empty Directories as Front Page

Post by techkid »

Oh thats how it works. Thank you very much :)
Post Reply