[SOLVED] Disable rewrite and output into html

Ask for help or provide support to other members.
Post Reply
zblog
Posts: 2
Joined: Thu Oct 15, 2020 11:06 am

[SOLVED] Disable rewrite and output into html

Post 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?
User avatar
wiz
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: disable rewrite and output into html

Post 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.
zblog
Posts: 2
Joined: Thu Oct 15, 2020 11:06 am

Re: disable rewrite and output into html

Post 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.
User avatar
wiz
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: disable rewrite and output into html

Post 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.
Post Reply