Skip to content

Instantly share code, notes, and snippets.

@kanetei
Last active March 4, 2016 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanetei/9fc7316259b9707afa0a to your computer and use it in GitHub Desktop.
Save kanetei/9fc7316259b9707afa0a to your computer and use it in GitHub Desktop.
concrete5のプリティURLとさくらのレンタルサーバのwww付きURL設定の両立
# -- 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