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