Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
SOLUTION

EDIT: Mistake was in the name while defining the cms itself
THIS IS CORRECT (cms.php):
Code: Select all
<?php require_once('couch/cms.php'); ?>....SITE CONTENT HERE...<?php COUCH::invoke(); ?>

-----------

PROBLEM
I just did a new install.
After installation all worked well but when logged in into the cms, and using the "view site" link (or accessing it straight away), this always redirects to the cms itself. I can't access my site after declaration...

Code: Select all
<?php require_once('couch/index.php'); ?>....SITE CONTENT HERE...<?php COUCH::invoke(); ?>


As soon as I delete the above code, I can access it again (but not the cms obviously).
The site is part of a subdomain. I've tried deleting the .htaccess as I came across a 500 internal server error. I've tried defining the full URL in config.php as well without result. And I've deleted caches and stuff like that along the way while figuring things out during the past hour...

Code: Select all
// define( 'K_SITE_URL', 'http://www.domain.com/subdomain/index.php/' );


Am I missing the point here while working with subdomains in combination with couchcms?
A good point is to also make sure the subdomain path is uncommented and correct in /couch/config.php. Common declaration would be
Code: Select all
 define( 'K_SITE_URL', 'http://www.domain.com/subdomain/' );

Path normally doesn't consist of index.php or any other file. Just directory itself.
This is for others who find this thread helpful in future.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
2 posts Page 1 of 1