简体   繁体   English

将wordpress与我的网站集成

[英]Integrating wordpress with my site

I've my site at http://www.domain.com/site and my wordpress blog at http://www.domain.com/blog . 我的网站位于http://www.domain.com/site ,我的wordpress博客位于http://www.domain.com/blog

While trying to integrate the wordpress with the site, I've included 在尝试将wordpress与网站集成时,

// Include WordPress
define('WP_USE_THEMES', false);
require('../blog/wp-blog-header.php');

It shows a error 500 when accessed on the browser. 在浏览器上访问时显示错误500。 How do I give the path to the wp-blog-header?? 我如何给出wp-blog-header的路径? NOTE: open_basedir restriction is also there in my server. 注意:open_basedir限制也存在于我的服务器中。

Probably the best idea is, to recreate the blog layout for your site. 最好的想法可能是为您的网站重新创建博客布局。 It will take some time and you'll need some basic html + css skills, but it's the best option 这将需要一些时间,并且您需要一些基本的html + css技能,但这是最好的选择

Is the path of the header file correct? 头文件的路径正确吗? Try giving it an absolute path. 尝试给它一个绝对路径。

This article has integration details, and the only thing you could get wrong is the path. 本文包含集成详细信息,唯一可能出错的是路径。 Do you have any custom .htaccess instructions? 您是否有任何自定义.htaccess说明?

http://codex.wordpress.org/Integrating_WordPress_with_Your_Website http://codex.wordpress.org/Integrating_WordPress_with_Your_Website

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM