Reputation: 11
What regex would I use to deny every URL using "?":
Ex. domain.com/? and domain.com/?p=1224
location (need regex){ deny all; }
Upvotes: 1
Views: 1634
Reputation: 8362
I believe \? would do what you want, ^\? is the reverse expression.
\?
^\?
Upvotes: 2