Change regex for matching URL to ignore js/css/img/ext