Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'specific "home page"...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
specific "home page"...
Authored by: zeb on May 27, '03 04:46:47PM

Great script!

I have a web site that doesn't use the default "index.html". How can I configure just this site to point to a specific "home page"?



[ Reply to This | # ]
specific "home page"...
Authored by: patrickgibson on May 27, '03 05:44:28PM
You can delete the index.html that's generated by the script, and replace it with your own. Alternatively, if you want to have something like index.cgi or index.php as your index, you can create a .htaccess file in the website folder with the following line:

DirectoryIndex index.php index.cgi index.html

(The order that you specify will be the search order.)

You can also search for "DirectoryIndex" in /etc/httpd/httpd.conf

[ Reply to This | # ]

specific "home page"...
Authored by: zeb on May 28, '03 12:01:23AM

Thanks Patrick, I set the "DirectoryIndex" in the httpd.config file to search for possible home pages that I might use...



[ Reply to This | # ]
specific "home page"...
Authored by: subgeniux on May 29, '03 08:12:27AM

I searched through the httpd.conf file and found these lines. Do a search through the httpd.conf file for HTML and you'll find these lines, then change the index.html in the DirectoryIndex line to your homepage file, I think this might do it.

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>



[ Reply to This | # ]
specific "home page"...
Authored by: subgeniux on May 29, '03 08:15:45AM

Oops, Patrick has already mentioned what I just said.



[ Reply to This | # ]