Hello dear silverstripers,
I have the following problem which happens with several (current and 3-years old) SS versions on different hosting providers.
It's possible to login to the admin page when a web-site is placed in a root directory (http://example.com). But when you move the web-site to the subdirectory (http://example.com/subdirectory) you cannot login to the admin page -- it redirects you to the login page without any login/password warnings.
Thanks!
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
The problem was in a session saving mechanism. When you move a site to a sub-directory, something prevent PHP to save session properly.
I've created ~/phpsession directory and point session.save_path parameter of php.ini (my provider allows me to do that) to it.
Hope it helps someone.
Thanks!