apache.htaccesshiawatha

.htaccess to .hiawatha regex conversion


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


Solution

  • 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