LoginSignup
4

More than 5 years have passed since last update.

[baserCMS]WordPressとbaserCMSの共存

Posted at

WordPressとbaserCMSの共存

  • 両方のインストールを完了させる
  • baserCMSの配置を変更
  • baserCMSをスマートURLに。
  • WordPressのRewrite設定を行う。
  • baserCMSの index.php を index_basercms.php に変更
  • .htaccess を下記に書き換える

(例)archives 配下のみWordPressにしたい場合


RewriteEngine On
RewriteBase /

トップページ(baserCMS)

RewriteRule ^$ index_basercms.php [L]

WordPress

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/archives/ [NC]
RewriteRule . /index.php [L]

baserCMS

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index_basercms.php [QSA,L]

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4