Skip to content

Instantly share code, notes, and snippets.

@tatuas
Created January 4, 2014 15:15
Show Gist options
  • Save tatuas/8256301 to your computer and use it in GitHub Desktop.
Save tatuas/8256301 to your computer and use it in GitHub Desktop.
localhost/dir1/subdir1/index.htmlをlocalhost/dir1/index.htmlでアクセスできるようにする
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /dir1/RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) subdir1/$1 [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment