Forum Moderators: phranque
Here's an example log entry which will go to www.mydomain.com/my_file_name.html when entered in the address bar:
/my_file_name.html&fr=ALmx0HCylV23MVmUcRTnLMIpCh665nkNw-0yFMsj8J1v-2TyyIGhnUIAAAAAAAAAAA
The URLs in question are dynamic and I already utilize mod rewrite for search engine friendly formatting. I'd like anything entered after ".html" in a URL to throw a 404.
I won't post what I've tried so far because I don't want anybody else to mistakenly attempt it as it either has no effect or a bad one ;) but a nudge in the right direction would be appreciated!
But here's a nudge: For the case you posted, you'll need to examine %{QUERY_STRING} using RewriteCond, and then internally rewrite the requested URL to a non-existent 'trap' page to throw a 404. Alternately, you could throw a 403-Forbidden, or 301-redirect the requestor to the proper URL.
Jim