i tried that, but results in permission denied (13) error on function session-start. can not write to tmp folder. but since it works for root i did bot know how to fix it.
like described here.
did some further research and it seems that kirby being installed in www. example.com sets its php sessions (kirby/toolkit/lib/s.php) to that domain. which is default and totally ok.
when blog. example.com tries to load session it fails since cross (sub)domain sessions are not allowed.
its probably the easiest solution to clone the current cms and mirror it having only the content of the blog.
has anyone a better idea or done a subdomain redirect to folder successfully? how did you do it?
Do you have full access to your web server and is it an apache? If yes, you should set up different virtual hosts and for blog.example.com you will need to use mod_proxy as mentioned in your htaccess example link from stackoverflow.
Another solution, merely a dirty trick, will make use of a frameset with a hidden frame. blog.example.com is then pointing to a frameset with two frames, one is an empty page; the other, which fills up the whole space, comes from www.example.com/blog. But this might stem from ancient times and could be a no-go in modern web programming. Using mod_proxy would be more state of art, I guess.
One quick question about the solution you posted – you said you didn’t try it out, but you clearly understand something I’m missing. How would the file structure look for this?
By far, I’ve created folders for subdomains and put their content, site and assets in there but my localhost is having none of it (and yes i did change the site.php) so I’m wondering if that was what I should have done.