dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Redirecting www.sample.com/index.html to www.sample.com to avoid duplication

  1. #1
    Join Date
    May 2011
    Posts
    3

    Redirecting www.sample.com/index.html to www.sample.com to avoid duplication

    If there is an index.html or index.htm or a variant of these files inside of the directory, the web server won't let you browse through directories.

    If I redirect “/index.html” to “/”, will this allow browsing of my website directories because it no longer has a page titled “/index.html” or does the page it is redirected to www.sample.com/ serve as the index page?

    In other words, will it expose my directories that would normally be directed to the index page or will my website directories be protected because the "www.sample.com/" page will become the index?

  2. #2
    Join Date
    Apr 2010
    Location
    Salem,Ma
    Posts
    623
    that type of behavior can be configured on or off in your web server configuration depending on what your using. if you are redirecting to / all it's doing is showing your index.html without including it in the browser url because index.html is usually the default initial file a webserver "serves" if no page is specified.

    easiest answer, try it and see. If you can see a directory structure then you need to secure your server.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles