「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();
?>

No comments yet


Copyright © Luvsic. Some rights reserved.