How do I make my home page show up for my site?

Asked by:
iszatso / 16 Points
Time:
2012-03-08 8:38 am EST
Category:
How To
Hits:
1,180
Want to have my site open on

http://iszatso.net/weather/wxindex.php

by typing

iszatso.net/weather

and remove the under construction sign. TIA,

BRGDS

patrick

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by User

0

ChristiNi
Staff
13,688 Points
2012-03-08 5:25 pm EST
Hi Patrick,

Thanks for your question about your site files. The first file the server loads by default is an index file (server looks for index.htm, then index.html, and finally index.php). I created an .htaccess file for you in the weather subdirectory and added the following code to override this default behavior and set wxindex.php as the directory index:

DirectoryIndex wxindex.php

When you navigate to iszatso.net/weather in your browser, you should now see your home page. For more information, please see our article about the document root directory and directory index.

I used this method instead of renaming the wxindex.php file to index.php because other files in your site referenced the wxindex.php file in links. Because of that, if we renamed the wxindex.php file, all files that linked to it would have to be updated.

Please let us know if you have any additional questions or need further assistance.

Regards,

Christi N.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}