News for hackers. Stuff that matters.
Re:Ask HN: please review my tool for rewrite rule testing by speleding on Wednesday December 29, 2010 @09:12AM (#2048706)
Very useful indeed, thanks!

I'm missing one important feature though: there is no way to test different host names. I use rewrite rules that check country specific TLDs on the domain name and also rules that check if the domain starts with "m." for mobile specific access by matching against %{HTTP_HOST}. This would also allow one to check if the URL is using an IP address instead of a domain name. This would seem a common need, right?

Re:Ask HN: please review my tool for rewrite rule testing by thepsi on Wednesday December 29, 2010 @09:19AM (#2048724)
I tried this and an extra field appeared above the URL allowing me to specify a value for HTTP_HOST.
Re:Ask HN: please review my tool for rewrite rule testing by mmelin on Wednesday December 29, 2010 @10:14AM (#2048846)
Yep, and what should happen is that when you enter a ruleset that uses a %{VARIABLE}, a text field should appear to let you specify the value to use for testing. If this does not happen for you, would you mind using the problem report button on the site? It will let me see your ruleset and a debug log to troubleshoot.