Why? Please fix it! I hope that many peoples will have problem with that..
Thanks
[SOLVED] WonderCMS doesn't works on 000webhost :(
Re: WonderCMS doesn't works on 000webhost :(
Hello Floop,
what a coincidence, I also noticed the same thing earlier today. I assume you can reach the home page (with the address like yourname.some000webhostdomain.com) and log in just fine, but as soon as you click the menu to get to another page, you get 000webhost's 404 error page, right?
I think something about the RewriteRule in the .htaccess file isn't working correctly there. Gonna play around with it as soon as I find the time, gimme two days, please...
Kind regards,
xss
what a coincidence, I also noticed the same thing earlier today. I assume you can reach the home page (with the address like yourname.some000webhostdomain.com) and log in just fine, but as soon as you click the menu to get to another page, you get 000webhost's 404 error page, right?
I think something about the RewriteRule in the .htaccess file isn't working correctly there. Gonna play around with it as soon as I find the time, gimme two days, please...
Kind regards,
xss
¿ן ʇ,uop 'spɹɐʍʞɔɐq ןןɐ ʇı ʇoƃ ן 'ɹɐǝp ɥo
Re: WonderCMS doesn't works on 000webhost :(
You can fix this by editing your .htaccess file and replace it (the whole document) with this code:
Please replace YOUR-DOMAIN-HERE with your own.
This will not generate clean URLs, but it will be fully functional.
Code: Select all
<Files password>
order allow,deny
deny from all
</Files>
Options +FollowSymLinks
Options +Indexes
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^\.]+)$ http://YOUR-DOMAIN-HERE.netne.net/?page=$1 [NC,L]
This will not generate clean URLs, but it will be fully functional.
Re: WonderCMS doesn't works on 000webhost :(
Hi again,
inspired by rob's post, I played around a bit more with it:
This as complete content of .htaccess seems to fix it for 000webhost.com web spaces, even with clean URLs still working. I tried it on two different domains, successfully. Effectively, you only need to add the line with ‚RewriteBase‘ if you use the .htaccess that came with WonderCMS.
Please report back if that works for you, too, Floop.
EDIT: In cases where WonderCMS does not run from the root folder of a domain, you will have to change the ‚RewriteBase‘ line to something like this:
inspired by rob's post, I played around a bit more with it:
Code: Select all
<Files password>
order allow,deny
deny from all
</Files>
Options +FollowSymLinks
Options +Indexes
RewriteEngine on
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^\.]+)$ ?page=$1 [NC,L]
Please report back if that works for you, too, Floop.
EDIT: In cases where WonderCMS does not run from the root folder of a domain, you will have to change the ‚RewriteBase‘ line to something like this:
Code: Select all
RewriteBase /path/to/wondercmsfolder/
¿ן ʇ,uop 'spɹɐʍʞɔɐq ןןɐ ʇı ʇoƃ ן 'ɹɐǝp ɥo
Re: WonderCMS doesn't works on 000webhost :(
Thanks! It works!
Thanks for reply!
Best support
Thanks for reply!
Best support