Changing Default Page Using htaccess

I’ve been searching for the best approach in making portal.php as the default page for MyBB, a free and powerful alternative to VBulletin. I don’t want to hack into the core program as that would be a disaster when there comes new releases. That’s exactly what happened with the modifications I’ve done for SMF before. At every new releases, I have to re-code my custom changes. But that’s another story. My requirement is simple, make portal.php as the default page without modifying index.php.

Luckily, I stumbled upon a post about common hthaccess tweak and viola! What I need. On the fourth item in the list, it says :

4.Changing Default Page – Sets the file that Apache will serve if a directory is requested. This directive tell apache to make home.html to be the default page.
DirectoryIndex home.html index.htm index.html index.php

That’s exactly what I wanted and it solved my little problem! By the way, it only work on a site hosted in a Unix/Linux server.

This entry was posted in Programming. Bookmark the permalink.

3 Responses to Changing Default Page Using htaccess

  1. parzufim.com says:

    viagra cialis levitra clomid buy viagra onli generic viagra http://www.parzufim.com cipro gay viagra buy viagra online cheap viagra
    free viagra
    herbal viagra
    propecia xenical viagra side effects buy viagra zithromax lasix female viagra cream cheapest cialis http://www.parzufim.com

  2. Wayne says:

    Very interesting site ! Good work ! Congratulations :) ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>