My server’s folder structure is like:
For the time being each environment is using a separate /content folder… I wanted to use the same folder for both environments… so I followed as instructed in the docs. It works and now the folder is at:
The problem is that, when I try to access the panel, it gets a redirect loop and the URL goes like:
I’ve seen this issue on github… but I’m still getting the same error (panel/panel redirects) even thou I’m kirby 2.2.3.
I guess that since I only moved the content folder… this wasn’t supposed to happen.
<?php $kirby = kirby(); // changing the directory $kirby->roots->content = $kirby->roots()->index() . DS . '../_content'; // changing the url $kirby->urls->content = $kirby->urls()->index() . '../_content';
It looks like the relative path is the culprit… but I’m not sure… sometimes it loads the panel partially (image below)
This content folder isn’t a public one… (not a www or public_html like folder)… would this be a problem too?
Do I also need to create a site.php file on /panel? Or only on root?
How’d I fix this?