Forum

rewrite rule(s) for Grav (PHP Flat-file CMS)

Gour
27 March 2016, 17:06
Hello,

I'd liek to use Hiawatha on my Debian dev machine for testing Grav sites, but need help with rewriting rules.

The rule for Caddy webserver is

rewrite {
regexp .*
ext /
to /index.php?_url={uri}
}


and there are few other files with rewrite rules for Apache2, Lighttpd, Nginx availablehere [github.com], so it would be nice if someone familiar- enough can provide rewrite rule suitable for Hiawatha which could be included within Grav repo and/or included here in support section?

octavhendra
28 March 2016, 03:43
you can use urltookit on this page https://www.hiawatha-webserver.org/forum/topic/2136/#11028
Gour
28 March 2016, 11:44
Thanks you very much!

Somehow I missed it in the forums and using Hiawatha is much more pleasurable than fiddling with Apache(2) and I even like it more than Caddy, even for localhost development.
Gour
28 March 2016, 15:35
Btw, what do you think about including it in the Grav repo itself along with the rewrite rules for other web servers?
Gour
29 March 2016, 17:06
Forgot to say that I was also looking in docs [www.hiawatha-webserver.org] prior of posting, but it is not listed there.
smö
12 April 2016, 12:25
see https://www.hiawatha-webserver.org/forum/topic/2136
This topic has been closed.