Page 1 of 1

Can I change name of mboard.php?

Posted: Fri Jan 05, 2007 1:25 pm
by d2007
I would like my discussion board to be the index (main) page for my site, so that entering my site's URL goes straight to the board.

So I was wondering:

Is it necessary to place the files the files in a subdirectory or can I place them in the root directory? (I don't really want a subdirectory in the URL if possible)?

Can I rename mboard.php to index.php so that visitors only have to enter www.{mydomain}.com/ to reach the board (and I don't have to use any redirects)?

Thanks


D

Posted: Fri Jan 05, 2007 2:28 pm
by Klemen
Hi,

Yes, you can have it run from your home directory, doesn't have to be in a sub-folder.

You can also rename mboard.php to anything you like, BUT you also need to open mboard.php file in a text editor (like Notepad or Wordpad) and replace all isntances of "mboard.php" to "yourname.php" ("index.php" in your case).

- OR -

If you are on a Linux/Apache box you can simply leave the name mboard.php and set it as the default index page in a .htaccess file:
- create a new text file
- add this inside:

Code: Select all

DirectoryIndex mboard.php
- save the file as "htaccess.txt"
- upload to your server in ASCII mode
- rename the file on your server from "htaccess.txt" to ".htaccess" (MUST start with a dot!)
For further help with this see
http://www.google.com/search?hl=en&q=ht ... index+page

Regards

Posted: Fri Jan 05, 2007 2:49 pm
by d2007
Thanks Klemen, that's a great help.


D