Last active
March 4, 2016 07:42
-
-
Save kanetei/9fc7316259b9707afa0a to your computer and use it in GitHub Desktop.
concrete5のプリティURLとさくらのレンタルサーバのwww付きURL設定の両立
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
# -- concrete5 urls start -- | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^(tagworks\.jp)$ [NC] | |
RewriteRule (.*) http://www.tagworks.jp%{REQUEST_URI} [R=301,L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME}/index.html !-f | |
RewriteCond %{REQUEST_FILENAME}/index.php !-f | |
RewriteRule . index.php [L] | |
</IfModule> | |
# -- concrete5 urls end -- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment