Skip to content

Instantly share code, notes, and snippets.

@uryu-myao
Created August 20, 2018 03:15
Show Gist options
  • Save uryu-myao/b28191c653844e5b5f3c99d5f27366ff to your computer and use it in GitHub Desktop.
Save uryu-myao/b28191c653844e5b5f3c99d5f27366ff to your computer and use it in GitHub Desktop.
hidden index from URL
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://yoshikawagumi.info/$1 [R=301,L]
<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment