Cakephp如何将链接/app/webroot/blog更改为/blog [英] Cakephp how to change the link /app/webroot/blog to /blog

查看:47
本文介绍了Cakephp如何将链接/app/webroot/blog更改为/blog的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由CakePHP建立的网站.我希望Blog部分使用Wordpress构建,因此我将Wordpress文件夹上载到/app/webroot/文件夹并将其重命名为'blog'.我正常安装了Wordpress.在首页中,我显示了带有代码

I have a website which was built by CakePHP. I want Blog section to be built with Wordpress so I upload a Wordpress folder to /app/webroot/ folder and rename it to 'blog'. I installed Wordpress normally. In the homepage, I show the link to Blog section with the code

<?php echo $this->webroot. '/blog'; ?>

我已经检查了它,并显示了" http//mydomain.com/blog ",但是我单击了该链接,它自动重定向到了" http//mydomain.com/app/webroot/blog ".

I have checked it and it showed 'http//mydomain.com/blog' but I clicked that link, it automatically redirected to 'http//mydomain.com/app/webroot/blog'.

我只希望将链接重定向到" http//mydomain.com/blog ".我该怎么办?

I just want the link to be redirected to 'http//mydomain.com/blog'. How can I do it?

P/S:对不起,我的英语不好.

P/S: I am sorry for my bad English.

推荐答案

听起来,当您运行WP安装时,您没有进入数据库并将URL路径更改为/blog.本文应该会有所帮助. http://www.balistupa.com/blog/2010/08/how-to-redirect-appwebrootblog-into-blog-wordpress-cakephp/

Sounds like, when you ran the WP install you didn't go into the database and change the url paths to /blog. This article should help. http://www.balistupa.com/blog/2010/08/how-to-redirect-appwebrootblog-into-blog-wordpress-cakephp/

这篇关于Cakephp如何将链接/app/webroot/blog更改为/blog的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆