Changing Default Page Using htaccess

Programming

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.

3 Responses to “Changing Default Page Using htaccess”

  1. ClarkKent Says:
    July 5th, 2008 at 4:04 pm

    Rear side. ,

  2. parzufim.com Says:
    July 9th, 2008 at 11:06 am

    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

  3. Wayne Says:
    November 4th, 2008 at 12:50 pm

    Very interesting site ! Good work ! Congratulations :),

Leave a Reply

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a

Icons by N.Design Studio. Designed By Ben Swift. Powered by WordPress, Search Optimization and Free WordPress Themes
Entries RSS Comments RSS Log in