Author Topic: I found a way to get rid of index.html in a website  (Read 72 times)

Offline Eyenstein

  • Soldier
  • Mortar
  • ****
  • Posts: 4,195
  • Karma: +308/-0
  • rEbElAlS lIeUtEnAnT and NijkoLime
    • View Profile
I found a way to get rid of index.html in a website
« on: May 28, 2013, 07:48 am »
Go to your .htaccess file and put this in
Code: [Select]
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{THE_REQUEST} \/index.html\ HTTP [NC]
RewriteRule (.*)index.html$ /$1 [R=301,L]
DERP and If birds can fly, so can potatoes.

╭━━━╮╱╱╭╮╱╱╱╱╱╭╮
┃╭━╮┃╱╱┃┃╱╱╱╱╱┃┃
┃╰━━┳━━┫┃╭━━┳━╯┣━━┳━╮
╰━━╮┃╭╮┃┃┃╭╮┃╭╮┃┃━┫╭╯
┃╰━╯┃╰╯┃╰┫╰╯┃╰╯┃┃━┫┃
╰━━━┫╭━┻━┻━━┻━━┻━━┻╯
╱╱╱╱┃┃
 

Offline Eyenstein

  • Soldier
  • Mortar
  • ****
  • Posts: 4,195
  • Karma: +308/-0
  • rEbElAlS lIeUtEnAnT and NijkoLime
    • View Profile
Re: I found a way to get rid of index.html in a website
« Reply #1 on: May 28, 2013, 08:08 am »
Bump
DERP and If birds can fly, so can potatoes.

╭━━━╮╱╱╭╮╱╱╱╱╱╭╮
┃╭━╮┃╱╱┃┃╱╱╱╱╱┃┃
┃╰━━┳━━┫┃╭━━┳━╯┣━━┳━╮
╰━━╮┃╭╮┃┃┃╭╮┃╭╮┃┃━┫╭╯
┃╰━╯┃╰╯┃╰┫╰╯┃╰╯┃┃━┫┃
╰━━━┫╭━┻━┻━━┻━━┻━━┻╯
╱╱╱╱┃┃
 

Offline Exposure

  • Mortar
  • ***
  • Posts: 2,928
  • Karma: +125/-0
    • View Profile
Re: I found a way to get rid of index.html in a website
« Reply #2 on: May 28, 2013, 09:53 am »
sweet