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'; ?>
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‘.
I just want the link to be redirected to ‘http//mydomain.com/blog‘. How can I do it?
P/S: I am sorry for my bad English.
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/