0

So i do not understand how the conversion from htaccess to hiawatha works. Can you suggest agood site or a good book to get into the topic?

My problem is the following conversion:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L]

htaccess

RequestURI exists Return
Match ^((?s).*)$ Rewrite /index.php?_url=/$1

hiawatha

But the Match Rewrite statement is wrong...

D4ny
  • 41
  • 5
  • Can you be more specific with what you mean by "wrong"? – Tim Seguine Oct 13 '15 at 13:30
  • Hiawatha was not starting ... because of the Match statement in the config. – D4ny Oct 15 '15 at 13:21
  • just in case somebody is interested this is needed for tutorial 7: phalcon REST API [link](https://docs.phalconphp.com/en/latest/reference/tutorial-rest.html) – D4ny Oct 15 '15 at 13:33

1 Answers1

0

The solution for hiawatha URL TOOLKIT is:

RequestURI exists Return
Match ^/(.*) Rewrite /index.php?_url=/$1

This redirects everything to the index.php. For example http://host/get/123 rewrites to http://host/index.php?_url=/get/123

D4ny
  • 41
  • 5