Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
I built my first CouchCMS website, and everything works fine expect one thing. When I set my index page as index.php the webpage wont load any pictures and I can't access admin log in page, while when it's called home.php it all works fine but the problem is that when user comes to www.example.com he/she going to see Couch log in page. I tried setting Directory index name in .htaccess
Code: Select all
DirectoryIndex home.php
but then I can't access admin page. When I type example.com/login.php it opens CMS login page and after successful login every time i try to open admin page in /login.php it redirects me to www.example.com/home.php. What should I do?

Thanks!
tleon wrote: What should I do?Thanks!
Did you try to rename index.php to home.php in couch admin?
Actually it is unclear what is the exact structure of your site. Could you, please, explain it? :)
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
@tleon, as @trendoman mentioned, it'd be difficult to understand the problem without knowing more about your setup.

Is your site online? If it is, please grant me access to it and I'll be happy to take a look at the problem myself.

Thanks.
Still not online, I'm testing it local. The problem is that in Couch there is a file named index.php, and it opens as the first page on any server. But when the page opens it shows Couch log in page(index.php redirects to login.php), how can I make it when someone comes to example.com to be redirected to example.com/home.php?

Thanks!
@tleon
The problem is that in Couch there is a file named index.php, and it opens as the first page on any server.

Your quote somehow makes me suspect that Couch is not setup correctly on your server.
The right arrangement has to be like the following -
Code: Select all
root 
   |__couch (folder)
   |      |_index.php
   |      |_login.php
   |      |_other core files
   |   
   |_home.php

That is to say, that 'couch' folder has to be an immediate sub-folder of your site so that you can access the admin-panel as -
http://example.com/couch/
http://example.com/couch/login.php

Whereas the templates of your own site (e.g. home.php) is accessed as follows -
http://example.com/home.php

Withe the above arrangement, if you place an 'index.php' in your site, it'll be in the root and distinct from 'couch/index.php' -
http://example.com/
http://example.com/index.php

Could you please check and confirm that your setup matches the one mentioned above?
5 posts Page 1 of 1