Web Hosting Talk







View Full Version : hide index.html


jmc67
06-18-2002, 11:39 AM
When I type www.domainname.com the browser adds /index.html at the end like: www.domainname.com/index.html

Is there a way for index.html not to show up?

Ahmad
06-18-2002, 12:17 PM
What is your server?

jmc67
06-18-2002, 12:37 PM
Originally posted by Ahmad
What is your server?
Apache/1.3.24 (Unix) mod_log_bytes/0.3 mod_bwlimited/1.0 PHP/4.2.1 FrontPage/5.0.2.2510 mod_ssl/2.8.8 OpenSSL/0.9.6b

Please keep in mind I don't have root access.

mwatkins
06-18-2002, 12:43 PM
Do you have a .htaccess file in your web root directory, and what are the contents?

michaeln
06-18-2002, 12:57 PM
Well this doesn't fully solve your problem,

However instead of calling your site like:
http://www.domainname.com

Call it like:
http://www.domainname.com/

To fix your problem it would really help if you had root access.... :)

jmc67
06-18-2002, 01:16 PM
Originally posted by mwatkins
Do you have a .htaccess file in your web root directory, and what are the contents?
I have .htaccess but its blank.

ho247
06-18-2002, 01:21 PM
Have you ever actually typed in http://www.domain.com/index.html into your browser? What I think it is, is that when you type http://www.domain.com/ the browser (Internet Explorer) is showing you the drop down list of previously visited URLs or it is auto-filling it with what it thinks you want (the index.html page that you previously went to)... so check that when you press enter that you're pressing enter to the proper address and not confirming what the browser has filled in.

Alan

mwatkins
06-18-2002, 01:29 PM
You can easily test what ho247 is suggesting by clearing your browser history. Tools > Internet Options > Clear History.

For good measure, close all instances of IE down after clearing your history, and follow michaeln's advice and put the trailing / on the domain name.

If it **still** redirects you to ../index.html then I suspect in httpd.conf someone has set up a redirect rule for your domain or perhaps for all.

Axel Teflon
06-18-2002, 02:05 PM
The /index.html doesn't add on for me.

StarGate
06-19-2002, 12:43 PM
Rename index.html to index.htm ;) Really, no joke! :)