WonderCMS / wondercms

Fast and small flat file CMS (5 files). Built with PHP, JSON database.
https://wondercms.com
MIT License
657 stars 165 forks source link

WonderCMS doesn't work correctly on subdomains #256

Closed robiso closed 2 years ago

robiso commented 2 years ago

If I use the www.domain.com/subdomain/page address everything works as expected. But if I use the subdomain.domain.com/page address only the first page works. When I click on any menu item the new page is opened but without any styling at all. Both background colour and text size are gone. And if I then try to go to one more page in the menu the link is now subdomain.domain.com/subdomain/page. This still works for standard pages, but also without styling. I have the blog plugin installed, and it does not like this double subdomain at all and only shows Sorry, page not found.

Reported in the WCMS community: https://www.wondercms.com/community/viewtopic.php?p=6291

robiso commented 2 years ago

Fixed with latest version of WonderCMS 3.3.2, closing issue.