<---------------------------- ----------------------------> <---------------------------- ----------------------------> --------------------> WordPress default URLをrootに変更する方法 – Inside of Papaya

WordPress default URLをrootに変更する方法

かなりハマりました。

insideofpapaya.comでアクセスがあったらinsideofpapaya.com/wordpress/に飛ばす方法をあれこれ探して試してみたのですが、自分の今の設定だと、結局、bitnamiのドキュメントに従うのがベストでした。

http://wiki.bitnami.org/Applications/BitNami_Wordpress#How_to_change_the_default_URL_to_root.3f

/opt/bitnami/apps/wordpress/conf/wordpress.conf で以下の設定をします。

# Uncomment the following lines to see your application in the root
# of your URL. This is not compatible with more than one application.
RewriteEngine On
RewriteRule ^/$ /wordpress/ [PT]

んで、ターミナルから
$ sudo /opt/bitnami/ctlscript.sh restart apache
を実行すればOK!
他の方法だと無限ループに陥っちゃうのよね。
というわけで、ひとつ解決!

Fatal error: Uncaught Error: Call to undefined function related_posts() in /home/insidepapaya/insideofpapaya.com/public_html/wordpress/wp-content/themes/hueman-child/single.php:71 Stack trace: #0 /home/insidepapaya/insideofpapaya.com/public_html/wordpress/wp-includes/template-loader.php(106): include() #1 /home/insidepapaya/insideofpapaya.com/public_html/wordpress/wp-blog-header.php(19): require_once('/home/insidepap...') #2 /home/insidepapaya/insideofpapaya.com/public_html/index.php(17): require('/home/insidepap...') #3 {main} thrown in /home/insidepapaya/insideofpapaya.com/public_html/wordpress/wp-content/themes/hueman-child/single.php on line 71