Website not displaying after changing index settings

Asked by:
iszatso / 16 Points
Time:
2012-04-05 12:15 am EST
Category:
General Server Setup
Hits:
837
website wont display, i think i screwed up some index of a folder. either shows forbidden, or an index, no website display as earlier.. wanting website back up. got in over my head. how to fix?? TIA, BRGDS,

patrick

postscipt.

Think if all are set to system default from root down everything is okay as the important thing is where the index.html or index.php points the outside world. think its fixed now because my index files html and php got screwed up. Is that about the essence?. Or are there certain directories where the default should be no indexing?

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-04-05 12:28 am EST
Hi Patrick,

**UPDATE**

If you create a directory, unless your intention is to show a list of files in the directory, you should either place an index page in the directory or set the directory to No Indexing. If your intended home page is something other than index (.html, .htm, or .php) then you can set the DirectoryIndex to that file name in your .htaccess file.

**

I'm sorry you had trouble with your index page not showing. In response to your previous question regarding your home page for the weather subdirectory, we set the DirectoryIndex for that /weather to wxindex.php. It looks like that file has been removed from the weather subdirectory and you now have index.html in that folder. I removed the DirectoryIndex wxindex.php line from your .htaccess file in the weather directory and you should now see your index page.

I didn't make any adjustments to the .htaccess in public_html because I wasn't sure if you had a file in there that should be your home page for just your domain name. If you do have a file you want to show up as the home page for your domain name, either rename that file to index.html (or .htm or .php) or add the DirectoryIndex line to your .htaccess file. DirectoryIndex should be followed by the exact file name, including the file extension. Keep in mind that the server is case sensitive.

Please let us know if you have any 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: 877-595-4HUB (4482)
757-416-6627 (Intl.)
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.
}