Last active
August 29, 2015 14:03
-
-
Save katzueno/c2931ebfc4fac17e8026 to your computer and use it in GitHub Desktop.
さくら:スタンダード【旧】 concrete5 でプリティー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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ index.php?pathinfo=$1 [L,QSA] | |
</IfModule> |
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
<?php | |
if (isset($_GET["pathinfo"])){ | |
$_SERVER["PATH_INFO"] = $_GET["pathinfo"] ; | |
} | |
require('concrete/dispatcher.php'); |
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
cgi.fix_pathinfo=1 | |
default_charaset = UTF8 | |
mbstring.language = neutral | |
mbstring.internal_encoding = UTF-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment