Broken links after the migration from domain root to subdirectory

Permalink
Hi. I'm a complete c5 newbie here. My situation is that I moved a concrete 5 website from a domain root (http://mywebsite.com) to a subdirectory (http://mywebsite.com/projects/c5) by following this guidehttp://www.concrete5.org/documentation/installation/moving_a_site/....

Pretty url is enabled and rules are included in htaccess. Everything works fine except some of the urls and images paths are broken. Link is going to the root path rather then subdirectory path. For example:

Link in the theme is given a href of /contact. When it is clicked it should go tohttp://mywebsite.com/projects/c5/contact... but instead it's going tohttp://mywebsite.com/contact. Same thing is happening with some the image urls.


My site config is:

define('BASE_URL', 'http://mywebsite.com');
define('DIR_REL', '/projects/c5');


I'm running concrete 5 version 5.4.2.1, which I inherited from someone else.

 
JohntheFish replied on at Permalink Reply
JohntheFish
on 5.6+, you dont need to define base or dir in config/site. c5 works them out for itself. So maybe commenting them out will help.

Also, check .htaccess as some location specific stuff may be in there.

It could also be old stuff caught in the cache, so turning off the cache and clear it.

The 5.6+ cache can be incredibly sticky, so you could also try to simply edit/save the affected blocks. The act of saving may calculate the urls again.