All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

how to remove index.html

  • # December 21, 2012 at 1:37 pm

    hello! every one

    can you tell me how to finish index.html after domain name in static website or any soluction

    Thanks advance :)

    # December 21, 2012 at 1:41 pm

    You need to create a .htaccess file and put this inside it.

    Options -Indexes

    # December 21, 2012 at 1:53 pm

    Recently i makes a .htaccess file in publichtml and did paste your code in .htaccess but not resolved index.html

    # December 21, 2012 at 1:56 pm

    when i am enter in and then click design.html and after that i am again come in so this link show

    # December 21, 2012 at 1:57 pm

    Wait, you just want to completely remove `index.html` from your URL’s?

    So you have:

    # December 21, 2012 at 1:58 pm


    # December 21, 2012 at 2:17 pm

    Try putting this in your .htaccess

    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{THE_REQUEST} /index.html HTTP [NC]
    RewriteRule (.*)index.html$ /$1 [R=301,L]

    # December 21, 2012 at 2:24 pm

    yes its working Thanku Thanku Thanku so much

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed