Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Indexing On Subdomains, index.html does not show up
unicornrose
post 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
Go to the top of the page
 
+Quote Post
mizako
post 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!
Go to the top of the page
 
+Quote Post
unicornrose
post 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?
Go to the top of the page
 
+Quote Post
clagnol
post 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.
Go to the top of the page
 
+Quote Post
unicornrose
post 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?



Go to the top of the page
 
+Quote Post
Spectre
post 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.
Go to the top of the page
 
+Quote Post
clagnol
post 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.
Go to the top of the page
 
+Quote Post
Spectre
post 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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Forums Won't Show Up(5)
  2. How To: Change Your Website's Index File(24)
  3. Psd --> Editable Html(4)
  4. Accidently Deleted Template.html(3)
  5. Attachment Problem In Pmwiki(0)
  6. where did you learn html from?(89)
  7. How Long Does It Take For Google To Index Your Website?(17)
  8. Enable/disable Task Manager(1)
  9. Add Flashing Inbox To Invisionfree Forum(2)
  10. What Is The Best Free Html Editor?(20)
  11. Some Questions On Html(6)
  12. Does Anyone Know Where I Can Get A Free Html Maker(15)
  13. Should Students In School Show Pda's(53)
  14. Create Dynamic Html/php Pages Using Simple Vb.net Code(1)
  15. How To Disable "show Hidden Files And Folders" In Folder Option(12)
  1. Flippingbook Html Edition(0)
  2. Html Based Emails On Hotmail(0)
  3. Show Google Your Creativity(4)
  4. Html, Xhtml, And Css, Sixth Edition (visual Quickstart Guide) Review(0)
  5. Sitepoint: The Ultimate Html Reference(0)
  6. Wanting To Touch Up/learn My Html Again(27)
  7. Making A Picture Viewer Website(3)
  8. Where Is There A Good Site To Learn Web Html?(20)
  9. Naming Web Page Files(9)
  10. Invisionfree Skin How-to Put On Your Forum(1)
  11. How To Create A Show Desktop Shortcut(2)