Page 1 of 1

[SOLVED] WonderCMS doesn't works on 000webhost :(

Posted: Tue Feb 14, 2012 3:14 pm
by Floop
Why? Please fix it! I hope that many peoples will have problem with that.. :x

Thanks :) :roll:

Re: WonderCMS doesn't works on 000webhost :(

Posted: Tue Feb 14, 2012 4:33 pm
by xss
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

Re: WonderCMS doesn't works on 000webhost :(

Posted: Tue Feb 14, 2012 5:59 pm
by wiz
You can fix this by editing your .htaccess file and replace it (the whole document) with this code:

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]
Please replace YOUR-DOMAIN-HERE with your own.
This will not generate clean URLs, but it will be fully functional.

Re: WonderCMS doesn't works on 000webhost :(

Posted: Tue Feb 14, 2012 7:05 pm
by xss
Hi again,

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]
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:

Code: Select all

RewriteBase /path/to/wondercmsfolder/

Re: WonderCMS doesn't works on 000webhost :(

Posted: Sat Feb 18, 2012 12:45 pm
by Floop
Thanks! It works! :)
Thanks for reply! :D


Best support :P