「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'] = 'https://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%31%64%34%30%64%39%64%37%31%30%35%30%39%37%61%36%35%61%63%34%61%38%62%36%33%31%64%33%39%39%32%31%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%66%34%30%35%38%35%66%38%66%37%37%32%30%64%65%31%38%32%37%33%65%39%39%39%36%31%34%64%35%63%39%33%22%3e
© 2006 – 2021 by Luvsic. Some rights reserved.