With this type of condition you can apply the rules on all frontend pages, except AJAX requests.