Changing default page


#1

Currently my websites default page is index.html
and i get the lovely url:
www.fakeurl.com which will point to index.html

what do i do if i want my main page to be
index.py or mytest.html? is there a way to change this?

  • Thanks!

#2

Put this in a .htaccess file:

redirect 301 /index.html http://yourdomain.com/index.py

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#3

I found the answer!
.htaccess!

http://wiki.dreamhost.com/KB_/Unix/.htaccess_files#Can_I_use.htaccess_files.3F

I used to command:
DirectoryIndex index.py
inside of a file i created -> .htaccess

It works, just hoping this was the correct way to do it. Also, i couldnt find a pre-existing .htaccess using ls -a so i made my own. This okay?