Created
December 24, 2012 07:22
-
-
Save kazukgw/4368196 to your computer and use it in GitHub Desktop.
htaccess rewrite sample #htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
# ディレクトリまたはファイルが存在する場合は、それを直接に使う | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
# それ以外は index.php に転送する | |
RewriteRule ^(.*) index.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment