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

Post Reply
Floop
Posts: 5
Joined: Sun Jul 10, 2011 10:32 pm

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

Post by Floop »

Why? Please fix it! I hope that many peoples will have problem with that.. :x

Thanks :) :roll:
xss
Support/Developer
Posts: 22
Joined: Thu May 26, 2011 9:07 pm

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

Post 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
¿ן ʇ,uop 'spɹɐʍʞɔɐq ןןɐ ʇı ʇoƃ ן 'ɹɐǝp ɥo
wiz
Admin
Posts: 481
Joined: Sat Oct 30, 2010 12:23 am

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

Post 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.
xss
Support/Developer
Posts: 22
Joined: Thu May 26, 2011 9:07 pm

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

Post 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/
¿ן ʇ,uop 'spɹɐʍʞɔɐq ןןɐ ʇı ʇoƃ ן 'ɹɐǝp ɥo
Floop
Posts: 5
Joined: Sun Jul 10, 2011 10:32 pm

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

Post by Floop »

Thanks! It works! :)
Thanks for reply! :D


Best support :P
Post Reply