website pointing to index.html

Status
Not open for further replies.

lberlin

New Member
Messages
2
Reaction score
0
Points
0
I have an issue that I couldn't solve. When I tried to see my website with the mydomain.com doesn't show up and it shows this message

Forbidden

You don't have permission to access / on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


The only way that I can see my website if I type mydomain.com/index.html

Any suggestions.

Thanks
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
What are the permission of public_html file??

Remove or Rename .htaccess file in public_html folder and see if the problem solve
 

farscapeone

Community Advocate
Community Support
Messages
1,165
Reaction score
27
Points
48
Boss wanted to say that your .htaccess file could be causing this problem. I don't recommend removing it if you don't know anything about it and can't get it back again. The problem with .htaccess could be that you have DirectoryIndex parameter set to something else and not index.html or whatever page you want to be your index page. To set any page (or any number of pages) to be your index page add this line of code to your .htaccess file in your root directory (public_html). If there's no .htaccess file you'll have to create one.

Code:
DirectoryIndex any_file.html

Be sure to change "any_file.html" to "index.html" or whatever page you want to set as index.

For more the one page just append them like this:

Code:
DirectoryIndex any_file.html any_file.htm any_file.php
 

carl6969

Community Support Team
Community Support
Messages
6,874
Reaction score
206
Points
63
A common practice in situations like this is to rename .htaccess to .htaccess.old which will prevent Apache from reading the file without actually deleting the file. After you are finished with diagnosis and any needed repair you can simply remove the ".old" from the end of the file name to make it readable by Apache once again. Hope this is helpful in some way.
 
Status
Not open for further replies.
Top