I am trying to convert all my old nginx rewrites to hiawatha but it seems I do something wrong because they all keep givng 404.
Currently in Nginx I have the following rewrites:
rewrite ^/threads/ulyaoth-repositories.3/ https://www.ulyaoth.net/resources/ulyaoth-repository.6/;
rewrite ^/threads/package-ulyaoth-hiawatha.23037/ https://www.ulyaoth.net/resources/hiawatha.7/;
rewrite ^/threads/package-ulyaoth-mbedtls.12137/ https://www.ulyaoth.net/resources/mbed-tls.8/;
rewrite ^/threads/package-ulyaoth-monkey.11622/ https://www.ulyaoth.net/resources/monkey.9/;
rewrite ^/threads/package-ulyaoth-tengine.3843/ https://www.ulyaoth.net/resources/tengine-stable.10/;
rewrite ^/threads/package-ulyaoth-httpdiff-masterbuild.741/ https://www.ulyaoth.net/resources/httpdiff.11/;
rewrite ^/threads/package-ulyaoth-solr.112/ https://www.ulyaoth.net/resources/solr-5.12/;
rewrite ^/threads/package-ulyaoth-banana.111/ https://www.ulyaoth.net/resources/banana.13/;
rewrite ^/threads/package-spotify.6/ https://www.ulyaoth.net/resources/spotify.14/;
In Hiawatha I do the following,
UrlToolkit {
ToolkitID = xenforo
Match ^/threads/package-ulyaoth-hiawatha.23037/ Rewrite /resources/hiawatha.7/
Match ^/threads/package-ulyaoth-mbedtls.12137/ Rewrite /resources/mbed-tls.8/
RequestURI exists Return
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}
I also tried this:
UrlToolkit {
ToolkitID = xenforo
Match ^/threads/package-ulyaoth-hiawatha.23037/ Redirect https://www.ulyaoth.net/resources/hiawatha.7/
Match ^/threads/package-ulyaoth-mbedtls.12137/ Rewrite https://www.ulyaoth.net/resources/mbed-tls.8/
RequestURI exists Return
Match .*\?(.*) Rewrite /index.php?$1
Match .* Rewrite /index.php
}
But neither works it does not give an error I just get a 404 error when I try go to "/threads/package-ulyaoth-hiawatha.23037/".
Any idea what I do wrong perhaps?