|
|
|
|
![]() ![]() |
May 8 2005, 04:49 AM
Post
#1
|
|
|
A smile is a golden drop of sunshine for one tiny moment. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 294 Joined: 6-March 05 From: I live near the Mouse on the Pacific Side in the US. Member No.: 4,188 |
Hi there.
When I creat html indexes they do not show up on my subdomains unless I directly link to them ie http://dark.unicornrose.com/index.html I know I should be able to just link this way http://dark.unicornrose.com and the index show up. If you will go there you will see instead it shows the directory index. How do I get it to stop showing that? Thank you very much! Beth |
|
|
|
May 8 2005, 09:22 AM
Post
#2
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 372 Joined: 16-August 04 From: Spain Member No.: 824 |
Hi,
I have subdomains and i did not have that problem. I guess should be something about permisions or a wrong configurartion in .httpaccess or in CPanel. Good Luck! |
|
|
|
May 8 2005, 10:44 PM
Post
#3
|
|
|
A smile is a golden drop of sunshine for one tiny moment. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 294 Joined: 6-March 05 From: I live near the Mouse on the Pacific Side in the US. Member No.: 4,188 |
It works with php indexes and modules that I have installed to a subdomain but it does not work with html indexes. Does anyone have some helpful advice?
|
|
|
|
May 21 2005, 10:19 AM
Post
#4
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 186 Joined: 3-April 05 From: Wichita, KS Member No.: 5,194 |
I have two guesses for the origin of your problem:
1. You have two index files, like for instance, index.html and index.php in the same folder... or 2. Your .htaccess file specifies a file other than index.html as the index page. If index.php works, but index.html does not, then #2 can't be right. And I would think you'd notice that you had two indices if #1 were culpable. So this post has probably been of no help, but I can't think of any other explanation for that behavior. |
|
|
|
May 24 2005, 02:24 AM
Post
#5
|
|
|
A smile is a golden drop of sunshine for one tiny moment. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 294 Joined: 6-March 05 From: I live near the Mouse on the Pacific Side in the US. Member No.: 4,188 |
It is the only index in the folder....the index.html that is. I just double checked and the information in the .htaccess file reads following:
Options All Indexes IndexOptions FancyIndexing And from the main .htaccess file: # # Apache/PHP/site settings: # # Protect files and directories from prying eyes: order deny,allow deny from all # Set some options Options All -Indexes Options +FollowSymLinks All -Indexes # Customized server error messages: ErrorDocument 404 /index.php # Set the default handler to index.php: DirectoryIndex index.php Is there anyhting that I should change? |
|
|
|
May 24 2005, 03:00 AM
Post
#6
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 874 Joined: 30-July 04 Member No.: 246 |
There's your problem. 'DirectoryIndex' denotes which files will be used as a pre-defined directory index seperated by a space, in the order given (so if it's 'a b', then 'a' will be used first; if not found, 'b'). So you'll need to add index.html in there somewhere. Just in case you haven't figured that out yet.
|
|
|
|
May 24 2005, 06:36 AM
Post
#7
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 186 Joined: 3-April 05 From: Wichita, KS Member No.: 5,194 |
If you plan on naming all of your index files "index.[whatever]", then you don't need this:
CODE # Set the default handler to index.php: DirectoryIndex index.php Without this code, "index.php" will still work as the index, and so will "index.html". Then there's the matter of this code: CODE # Customized server error messages: ErrorDocument 404 /index.php This sends the browser back to "index.php" when the server can't find a page. If "index.php" doesn't exist, it will just show the default Apache 404 page. You might be able to add "index.html" after "index.php", like Spectre says you can do for the DirectoryIndex command, so that you can cover your bases, but I'm not sure about the syntax of this command. In my opinion, it is better to simply delete this so that your visitors get the 404 page. If I were at your site and I tried to access an unavailable page, I'd like to know what the problem was, rather than just being sent back to the index. My advice: delete all of the code I've quoted above. Best of luck. |
|
|
|
May 26 2005, 03:14 PM
Post
#8
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 874 Joined: 30-July 04 Member No.: 246 |
Pre-defined index files (eg. index.html, index.php, etc) aren't automatically recognized by Apache. You have to specifically specify them with the DirectoryIndex directive in the httpd.conf file. However, .htaccess files (if enabled) overwrite entries in the configuration file. Whilst the DirectoryIndex is certainly useful, you do not need it to specify indexes that already exist in Apache's core configuration file. I'm not entirely sure of all existing entries on Trap17's server, but I do know that both index.html and index.php are present.
|
|
|
|
![]() ![]() |
Similar Topics