Joomla!, Wordpress tips for building your site

WordPress transferred to a subdirectory

Published on| November 6th, 2009 | No Comment.

To move to a subdirectory WordPress is the official page (official) is located here.
Here is a little geeky way, and, try to describe the way without the root directory.

Here, http://www.example.com from the description as to the specific http://www.example.com/wordpress.

Way

  1. WordPress files under the current installation directory of all the directories and copies to the destination directory.
  2. Update the DB.
    1
    2
    3
    4
    
    UPDATE wp2_blog_off_options SET option_value='http://www.example.com/wordpress' WHERE option_name='siteurl';
    UPDATE wp2_blog_off_options SET option_value='http://www.example.com/wordpress' WHERE option_name='home';
     
    UPDATE wp2_blog_off_options SET option_value='/home/xxxx/www/offblog/wp-content/uploads' WHERE option_name='upload_path';

    One line is set in the control panel "General Settings panel of WordPress address (URL) is equivalent to.option_value the value of the destination URL set correctly.
    The second line is set in the control panel "General Settings panel blog address (URL) is equivalent to.(Ibid.)
    The third line is set in the control panel "corresponds to the location of the panel to upload files and other settings.Here is the full path.

  3. . htaccess changes as follows.
    1
    2
    3
    4
    5
    
    RewriteEngine On
    RewriteBase /wordpress/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]

    We change the first line 2,5./ wordpress are touching.

Done!!
web server,. htaccess does not work, can not Ashikarazu.
Currently, in most cases, apache and I,. Htaccess is not working if even some features, rewrite functions, in most cases, it would work, probably not useful I Kanan, maybe.






Comments

Leave a Reply








Transrator

Recent Posts

Categories

Tag Cloud

execute remove フロントページ 投稿ページ トップページ install WIndows Note Convert META generator 日付 donwload file manage multibyte utf-8 unicode shiftjis euc console サイトマップ 問題 ParmaLink Redirect パーマリンク はみ出る pre テンプレート テーマ タグクラウド マルチランゲージ リダイレクト PHP(タグ) タグ table control HTML(タグ) コマンド 国際化(翻訳) SQLite(タグ) MySQL(タグ) qTranslate プラグイン(タグ) Wordpress(タグ)

Links

Site Description

Joomla!, Wordpress as CMS using a site building, site management, software usage to describe the development tips.

  • はてなブックマークへ追加する
  • Facebookでシェアする
  • twitter でつぶやく
  • Google Plusでシェアする
  • Pocketでシェアする
ページトップへ