Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
ceeyahd1
Joined: Feb 06, 2004
# Posts: 71
|
Posted: 2006-Aug-10 02:15
Hi All, I am back for expert advice. I was in the process of updating my website but as usual I did something stupid and attempted to restore everything back to the way it was, the problem I am having is when I enter my address either by www.site address or http//:site address I get an error message and the only way I can go to my homepage is to end it with index.html. I have checked my other website to see what I have done wrong but I see no difference. What did I do wrong?
Thaks for your help.
|
 |
dudibob
Joined: Oct 13, 2005
# Posts: 1462
|
Posted: 2006-Aug-10 15:28
ok, so if you type in www.domain.com you get an error page but if you type in www.domain.com/index.html it works!? it sounds to me like you've somehow managed to get rid of a setting on a server that tells it if anyone types in www.domain.com it'll serve a certain page, such as index.html
are you on Apache or Windows hosting?
|
 |
g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10438
|
Posted: 2006-Aug-10 21:37
Look for the DirectoryIndex directive located either in the httpd.conf or in the .htaccess file.
Make sure that you do have the filename that you use for the default index page name listed in that directive.
|
 |
Curt
Joined: Eons Ago
# Posts: 3736
|
Posted: 2006-Aug-14 04:50
Do you have use of your own server? If so, have you edited any files in the “/path/to/Apache2/conf” (where “/path/to” would be the higher up directories) directory?
Did you edit the “DirectoryIndex” directive in httpd.conf?
If so, you could change it to this:
DirectoryIndex index.html index.html.var index.shtml index.htm index.pl index.cgi
That way it will treat each one of those variations as the default home page. As for “index.html.var”, don't ask me about that one as it was set up that way by default when I installed apache on my computer.
-------
g1smd, question: Is “DirectoryIndex” also a valid directive within “.htaccess” file?
|
 |
kaulbr
Joined: Mar 15, 2006
# Posts: 275
|
Posted: 2006-Aug-14 21:09
I once worked with a server where the index page would only show automatically if it was saved with a ".htm" extension and not a ".html" extension. Just a possible suggestion but I'm sure it's not that simple.
|
 |
Curt
Joined: Eons Ago
# Posts: 3736
|
Posted: 2006-Aug-27 05:15
Are the various directives/commands found in httpd.conf also valid for the “.htaccess” file?
g1smd said:
Look for the DirectoryIndex directive located either in the httpd.conf or in the .htaccess file.
|
 |
g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10438
|
Posted: 2006-Aug-27 10:08
The stuff in .htaccess applies to the folder it is in.
The stuff in httpd.conf is global for the site, (or sites if there is more than one on the server).
|
 |
Curt
Joined: Eons Ago
# Posts: 3736
|
Posted: 2006-Aug-31 11:26
So basically many of the directives that work in httpd.conf will also work in .htaccess for the single site for which it controls, right?
|
 |
g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10438
|
Posted: 2006-Sep-01 00:52
Many will. Check the Apache documentation at http://apache.org/ for the exact details.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|