【发布时间】:2013-04-26 11:13:45
【问题描述】:
我在托管空间的根目录上安装了 Joomla 1.5.26。我想在子目录中安装一个 wordpress 网站。
所以我在根目录中编辑了 .htaccess 文件,在 RewriteEngine On 之后立即添加了这两行:
RewriteCond %{REQUEST_URI} ^/subdirectory/
RewriteRule ^(.*)$ $1 [L]
我还编辑了 functions.php 文件,在 php 开始标记之后添加了这两行(显然使用了我的域和子目录名称):
update_option('siteurl', 'http://www.example.com/subdirectory');
update_option('home', 'http://www.example.com/subdirectory');
我已将 mysql 数据库中 wp_options 表中的“home”和“siteurl”字段值更改为“http://www.example.com/subdirectory”。
当我尝试访问子目录时,我收到 HTTP 500 错误。
【问题讨论】:
-
这可能会有所帮助 - stackoverflow.com/questions/9092124/…
标签: wordpress .htaccess joomla