Wordpress blog在magento根文件夹的子目录下


wordpress blog in a subdirectory of the magento root folder

我在http://example.com有一个Magento网站,我想在http://example.com/blog保持一个Wordpress博客。我已经安装了博客,一切似乎都很好,但当我登录到Wp-Admin时,我得到了css和js文件的404。

我的配置如下链接:-

https://serverfault.com/questions/594841/magento-wordpress-nginx-configuration

您是否正确设置了您的网站/主页URL ?

同样在wp-config.php中,确保将WP_HOMEWP_SITEURL变量设置为您正在使用的正确URL(子目录)

应该是这样的:

$host = 'http://' . $_SERVER['HTTP_HOST'] . '/blog/';
define('WP_HOME',$host);
define('WP_SITEURL',$host);