Forum Moderators: phranque

Message Too Old, No Replies

.htaccess problem on Firefox

Directory index still active even though no .htaccess file

         

h2dragon

1:19 am on May 18, 2012 (gmt 0)

10+ Year Member



Hi everybody. I'm pretty new to being a webmaster, and I'm encountering a really weird problem. When I access my site (no directory, just the root) on Firefox, it will use the index directory (I place each of the webpages into its own directory for convenience of people browsing the site) as its "DirectoryIndex" even though I have removed the .htaccess file from the directory.

I tried accessing my site root on other browsers (IE8 and Google Chrome) and I did not experience the same problem.

Any suggestions?

lucy24

7:24 am on May 18, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can we assume for the sake of discussion that you have cleared all browser caches?

And maybe you'd better explain what you mean by "the index directory". URL is = what? Source of page content is = what?

wilderness

4:09 pm on May 18, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



and index listing of directories contents is what's being referred to.

I'm using FF 7.0 and the same thing happens. No clue why.
Don't recall if it happens on my active site, however it happens on my local computer directories of same website.

g1smd

6:46 pm on May 18, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Unless there is some wierd stuff going on with mod_security or you have code that looks for specific user agents it's generally not possible for different browsers to give different results.

wilderness

6:57 pm on May 18, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



file:///C:/Website/Site_New/sub-folder/

In FF 7.0
shows directory contents, even though there's an empty index.html present.

In IE 7 the path won't even open

g1smd

7:05 pm on May 18, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You didn't clear the browser cache. :)

wilderness

7:12 pm on May 18, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You didn't clear the browser cache. happy!


Firefox doesn't know how to open this address, because the protocol (c) isn't associated with any program.

BTW, I clear my cache about ten-thousand time a day (exaggeration), why should I need to clear for a new request?

g1smd

7:26 pm on May 18, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Oh. Hang on, you're serving this as a file directly from the hard drive folder? The htaccess file doesn't even come into play in that case.

You need to install a local copy of Apache before you can start doing what you want to do.