Page 1 of 1

Hosting

Posted: Tue Oct 25, 2011 12:20 pm
by alexrules01
Hi all. I have just recently dived into the web-hosting side of things, putting a site live!
I am only using 000webhost for now, just seeing how my game looks.

I just wanted to ask- Is it the right procedure to give the login page the name index, as I believe this is what the site looks for first, which as of now is my main page. So I get an error message saying to log in. Its not a big deal, im just used to having my main page named index though :lol:

Re: Hosting

Posted: Tue Oct 25, 2011 12:55 pm
by Chris
You could make a new .htaccess file with the following code:

Code: Select all

DirectoryIndex login.php
This will make http://example.com/ always go to login.php rather than index.php

Re: Hosting

Posted: Wed Oct 26, 2011 9:17 am
by alexrules01
Thanks alot mate, nice to know for future references! Now I don't have to go and change a lot of links :P