.htaccess to .hiawatha regex conversion

350 views Asked by At

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

1

There are 1 answers

0
D4ny On BEST ANSWER

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