Another 404 problem solved
Posted: Thu Jan 07, 2021 10:31 am
I have installed WonderCMS on my website server, in a sub directory.
I currently work in a company, but after the 1st of April I will have my own. For this I need a website different from the one I have now. It is a good idea to prepare this one in good time. I have tried a number of CMS systems as well as a number of static website generators. WonderCMS is really good. There might still be things to desire, but all in all it is the best software I have seen so far. You can count on my financial support.
I was not able to log into "loginURL" and hat 404 on all pages. I read all the documentation I could find, but didn't find a solution anywhere.
Then, in my ignorance and desperation I tried the following change:
Options -Indexes
ServerSignature Off
RewriteEngine on
RewriteBase /wonder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA,L]
RewriteRule database.js - [F]
RewriteRule cache.json - [F]
This solved the problem. It is the line "RewriteBase /wonder" - the name of the subdirectory in which I had placed WonderCMS. I am telling you this, because it might help others who encounter the same problem.
I currently work in a company, but after the 1st of April I will have my own. For this I need a website different from the one I have now. It is a good idea to prepare this one in good time. I have tried a number of CMS systems as well as a number of static website generators. WonderCMS is really good. There might still be things to desire, but all in all it is the best software I have seen so far. You can count on my financial support.
I was not able to log into "loginURL" and hat 404 on all pages. I read all the documentation I could find, but didn't find a solution anywhere.
Then, in my ignorance and desperation I tried the following change:
Options -Indexes
ServerSignature Off
RewriteEngine on
RewriteBase /wonder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA,L]
RewriteRule database.js - [F]
RewriteRule cache.json - [F]
This solved the problem. It is the line "RewriteBase /wonder" - the name of the subdirectory in which I had placed WonderCMS. I am telling you this, because it might help others who encounter the same problem.