• http://www.dolanddesign.com/web/

    Hi, so I have a folder named “web” that houses necessary html files and swf’s for http://www.dolanddesign.com/web/small-world-word-fun to run.

    That is the name of my section, “WEB”. So when someone clicks on the WEB button on the menu, it displays the folder contents as you can see. I want it to display the wordpress page I made for WEB. Basically an exact copy of: http://www.dolanddesign.com/web/flash-heads

    I tried to simply rename the folder to something other than “web” but then the piece http://www.dolanddesign.com/web/small-world-word-fun does not function. It’s apparently looking for those files in the same directory, “web”. If I change the permalink to “interactive” the page loads correctly upon clicking on WEB, but then the Small World piece does not work as it’s looking for a directory, “interactive” which does not exist. Of course, changing the name of the directory to “interactive” only brings me back to the original problem of actually displaying the contents instead of the page, “WEB”.

    Was this confusing?? I just want the WEB section to display http://www.dolanddesign.com/web/flash-heads
    and NOT the directory. : ) thx

Viewing 4 replies - 1 through 4 (of 4 total)
  • Add a blank file in /web called index.html

    Thread Starter doland

    (@doland)

    ahh, yeah well that takes me to a blank page (as expected) so all I did was add a redirect inside of that index.html file. Works geat now, thanks!

    it displays the folder contents as you can see

    This is also going to be true for any other directory that may not contain an index file. Here’s an example: dolanddesign.com/wp-content/uploads/

    You may want to prevent casual browsing of all directories on your site by adding:
    Options -Indexes to the very top of your .htaccess file.

    Modifying the .htaccess file is the best and safest option

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How to NOT display folder contents’ is closed to new replies.