PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, February 16, 2022

[FIXED] Cakephp how to change the link /app/webroot/blog to /blog

 February 16, 2022     cakephp     No comments   

Issue

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.


Solution

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/



Answered By - Tim Joyce
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing