Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
After the ioncude has been removed(YAY!), i'm trying to deploy CouchCMS on Appfog.com

It works well, but I have one problem with link url rendering.

You can see the problem here: http://www.glocalpartners.com when clicking on navigation links.

Links in the navigation retain appfog url alias, and not my domain.
http://glocal.eu01.aws.af.cm/what-we-do/ should be http://www.glocalpartners.com/what-we-do/

The way I integrate links is follows:

Code: Select all
<a href="<cms:link 'what-we-do.php' />">What We Do</a>

I'm storring navigation file in the root folder, not in snippets as suggested. Not sure if it matters here.

I'm wondering if it is CouchCSM problem or I need to adjust DNS settings.
Seems Couch is having problem figuring out your domain name.
Try lending it a helping hand by hard-coding it in config.php.

This is the setting that you need to change -
Code: Select all
    // 1.
    // If neccesary, define the full URL of your site including the subdomain, if any.
    // V.IMP: Don't forget the trailing slash!
    //define( 'K_SITE_URL', 'http://www.test.com/subfolder1/subfolder2/mysite/' );

Remove the leading '//' and make it
Code: Select all
define( 'K_SITE_URL', 'http://www.glocalpartners.com/' );

Hope this helps. Please let me know.
Has figured out the cause of the problem.

Couch cache setting has been ON. And it has cached the old routes.

Is there a way to manually purge cache? I'm currently changing
Code: Select all
define( 'K_USE_CACHE', 1);

this setting 1 to 0, reload the page and then back to 1.
There is no need to manually change the cache setting to 0 and back to 1.
Anytime you create or modify any page in the admin-panel, the cache gets invalidated automatically.
So to purge the cache, simply make some dummy changes to any page content and save. This will make Couch discard all previously cached contents and begin serving the modified ones.

I'd like to add here that the cache does not come into play when you are logged-in as admin or super-admin. So if you suspect that a problem is related to caching, try logging-on as admin and view the site. You'll always be served uncached pages this way and you can confirm if indeed it is the cache that was causing the problem.

Hope this helps.
4 posts Page 1 of 1