You should escape periods in these regexes with a \, otherwise they will match any character. 'about/drivers\.html' -- I do notice that other lines in this file have the same mistake.