Hosting

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
alexrules01
Posts: 175
Joined: Sun Oct 11, 2009 9:33 am

Hosting

Post 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:
User avatar
Chris
Posts: 1581
Joined: Wed Sep 30, 2009 7:22 pm

Re: Hosting

Post 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
Fighting for peace is declaring war on war. If you want peace be peaceful.
alexrules01
Posts: 175
Joined: Sun Oct 11, 2009 9:33 am

Re: Hosting

Post 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
Post Reply

Return to “Beginner Help and Support”