「FancyURL-2」導入手順

Nucleus v3.3 FancyURL-2 - wa - Nucleus や ウェブネタなど

XREAでサクッと導入できた、3~4分くらいだろうか。
・・・なんて簡単なんだ。



導入手順

  1. /extra/fancyurls2/.htaccessの内容を既存.htaccessに追加
  2. index.phpを一箇所書き換え
  3. グローバル設定でURLモードをFancyに設定
  4. スキン「feeds/rss20」、テンプレート「feeds/rss20」のアイテムへのパスを変更
  5. テンプレート「feeds/atom/entries」のアイテムへのパスを変更

記録用コード

.htaccess(※UTF-8用コード含む)

php_flag register_globals Off
php_value default_charset UTF-8
php_value mbstring.language Japanese
php_value mbstring.internal_encoding UTF-8
php_flag  mbstring.encoding_translation On
php_value mbstring.http_input auto
php_value mbstring.http_output pass
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?virtualpath=$1 [L,QSA]
</IfModule>

index.php

<?php
$CONF = array();
$CONF['Self'] = 'http://luvsic.net';
include('./config.php');
selector();
?>

さくらレンタルサーバの場合 .htaccess

<IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteBase /
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?virtualpath=$1 [L,QSA]
</IfModule>
Skooler Records

No comments yet

%3c%69%6e%70%75%74%20%74%79%70%65%3d%22%68%69%64%64%65%6e%22%20%6e%61%6d%65%3d%22%6e%70%5f%70%72%6f%74%65%63%74%62%79%6d%64%35%22%20%76%61%6c%75%65%3d%22%34%38%35%31%33%63%35%36%36%63%65%30%64%35%38%66%33%62%62%39%34%38%61%35%61%37%36%35%31%35%33%62%22%3e %3c%69%6e%70%75%74%20%74%79%70%65%3d%22%68%69%64%64%65%6e%22%20%6e%61%6d%65%3d%22%6e%70%5f%70%72%6f%74%65%63%74%62%79%6d%64%35%5f%68%61%73%68%22%20%76%61%6c%75%65%3d%22%39%32%63%38%38%37%37%62%65%34%61%32%36%32%62%65%39%64%36%35%61%37%37%32%34%66%37%63%34%61%63%31%22%3e
© 2006 – 2014 by Luvsic. Some rights reserved.