#The data behind is processed by the HTML page, not by routing, so your rewriting rules should be:
rewrite ^/module/(.+)\.html$ /
That’s it.
All you need to do is remove .html and /module/.
In addition, I don’t know whether you want to write the address /module/index.html to access /index, or write the address /index to access /module/index.html, if it’s the latter , it’s not the one above, it should be:
#
The data behind is processed by the HTML page, not by routing, so your rewriting rules should be:That’s it.
All you need to do is remove
.html
and/module/
.In addition, I don’t know whether you want to write the address
/module/index.html
to access/index
, or write the address/index
to access/module/index.html
, if it’s the latter , it’s not the one above, it should be:Sorry, the server cannot get the data after
#
ofURL
. This part can only be processed on the front end.