Forum

Vanilla Forums URLToolkit = 404

k0nsl
9 November 2012, 17:21
I'm struggling with getting the UrlToolkit for Vanilla Forums working correctly, but continue ending up with 404 errors whenever I activate "Pretty Urls", with this UrlToolKit:
UrlToolkit {
ToolkitID = vanilla
RequestURI exists Return
Match ^/(.*)\?(.*) Rewrite index.php?p=$1&$2
Match ^/(.*) Rewrite index.php?p=$1
}

It works flawlessly when I turn off "SEO URLs" / "PrettyURLs", but returns 404 errors when I activate.

Any ideas? Is my UrlToolKit wrong?

-k0nsl

Hiawatha version: 8.6
Operating System: CENTOS 5
Hugo Leisink
9 November 2012, 18:35
Place a slash in front of the index.php:
UrlToolkit {
ToolkitID = vanilla
RequestURI exists Return
Match ^/(.*)\?(.*) Rewrite /index.php?p=$1&$2
Match ^/(.*) Rewrite /index.php?p=$1
}

You can test your UrlToolkit rules with wigwam.
k0nsl
9 November 2012, 18:37
Hugo:

Thanks for the response. I actually tried what you suggested just a second prior to reading your answer, and it works. I seem to recall testing that another time and it didn't work (or perhaps that was for my WordPress installation, I forget).

In any case, all is well!

Thanks. Topic can be closed.

-k0nsl
This topic has been closed.