Page 1 of 1

[SOLVED] Disable rewrite and output into html

Posted: Thu Oct 15, 2020 11:16 am
by zblog
wondercms 3.1.2
server windows iis
php 7.4

1, rewrite not working , click login url link 404, rewrite mod working good,
how to disable rewrite use php link ?

2, add new page the data all write into data.js, how to output into a new file.html ?

anyone do that before?

Re: disable rewrite and output into html

Posted: Fri Oct 16, 2020 7:00 am
by wiz
Hi zblog, welcome to the community!

1. Did you update your server config as specified in the documentation? https://github.com/robiso/wondercms/wik ... ver-config
2. Instead of outputting data to database.js and create files -> this isn't supported anymore (but was the only way how WonderCMS used to work).
3. There is no easy way to disable clean URLs to make everything work (this would require forking WonderCMS). I think if 1 is fixed (above), the clean URLs will work as expected.

Please let us know if you need any assistance.

Re: disable rewrite and output into html

Posted: Sat Oct 17, 2020 5:18 am
by zblog
Thank you, admin~
Cause I add wc in a sub dir
so i change the rewire rule "/index.php?page={R:1}" to /dir/index.php?page={R:1}
(https://github.com/robiso/wondercms/wik ... ver-config)
now it works

but because it faster and cheaper,write files into html are very welcome in China, although it is now 2020,
Unfortunately, the latest version does not support this feature,
This is also destined to be a small number of users use this cms in China, so sad......

wiz wrote: Fri Oct 16, 2020 7:00 am Hi zblog, welcome to the community!
1. Did you update your server config as specified in the documentation? https://github.com/robiso/wondercms/wik ... ver-config
2. Instead of outputting data to database.js and create files -> this isn't supported anymore (but was the only way how WonderCMS used to work).
3. There is no easy way to disable clean URLs to make everything work (this would require forking WonderCMS). I think if 1 is fixed (above), the clean URLs will work as expected.
Please let us know if you need any assistance.

Re: disable rewrite and output into html

Posted: Sat Oct 17, 2020 6:36 am
by wiz
No problem at all.

There are certain advantages/disadvantages when outputting pages for each HTML.

There are other CMSes that do this type of things, one of them is called Mecha. WonderCMS isn't a perfect solution for everyone and there are numerous open source solutions (which we entorely support and encourage) out there that already solve your problem.

Hope this helps, let us know if you have any more issues.