Skip to content

Instantly share code, notes, and snippets.

@katzueno
Last active August 29, 2015 14:03
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 katzueno/c2931ebfc4fac17e8026 to your computer and use it in GitHub Desktop.
Save katzueno/c2931ebfc4fac17e8026 to your computer and use it in GitHub Desktop.
さくら:スタンダード【旧】 concrete5 でプリティーURLを動かす方法
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?pathinfo=$1 [L,QSA]
</IfModule>
<?php
if (isset($_GET["pathinfo"])){
$_SERVER["PATH_INFO"] = $_GET["pathinfo"] ;
}
require('concrete/dispatcher.php');
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