Re:Ask HN: please review my tool for rewrite rule testing
by mmelin on Wednesday December 29, 2010 @10:12AM
(#2048837)
Thanks! I've realized I need to come up with a better way to handle the special RewriteCond patterns, such as -f and -d. Right now all variables are handled in the same naive way, i.e. you get to specify their value in text form, but for things like -f/d/l that doesn't work (because for instance -f tests if the input string is a file in the current directory)
REQUEST_FILENAME: I tried blank, "year/month/day/post-name" and "/year/month/day/post-name".
URL: year/month/day/post-name (to give hostname/year/month/day/post-name).
Rewrite rules copied from the WP link above:
I got one no match and two rules skipped.EDIT: You have an XSS vulnerability in the URL field. Use the first test from this list: http://ha.ckers.org/xss.html .