Forum

RewriteRule htaccess to hiawatha

D4ny
13 October 2015, 15:03
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
13 October 2015, 16:25
Well i think i got it working now... just in case somebody is interested this is needed for tutorial 7: phalcon REST API (https://docs.phalconphp.com/en/latest/reference/tutorial-rest.html)

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


I am still interested in more info about this topic if somebody can recommend a good source.
Hugo Leisink
14 October 2015, 01:36
If you search the internet for 'regular expression', you'll find enough information to understand how the UrlToolkit works.
This topic has been closed.