Forum Moderators: phranque
Checking my recent log entries at my site, it reveals that I'm getting a lot of 'Page Not Found' errors and the offending URL's are similar to this:-
http://example.com/taxonomy/term/drupal/?_menu[callbacks][callback]=http://www.example.com/folder/filename.txt? Everything from the "?_menu" on is crap and false. How do I trap for this and redirect to another page. This is what I've tried so far but doesn't work (and then a heap of variations):- RewriteCond %{QUERY_STRING} ^\?_menu\[callbacks\] Any help appreciated. [1][edited by: engine at 7:22 am (utc) on May 17, 2008]
RewriteRule ^$ http://example.com/node/89? [R=301, L]
[edit reason] examplified [/edit]
Removing the question mark has at least stopped the internal server errors occurring.
Writing these lines doesn't appear to work, I still get a 'page not found' error and the url in the address bar hasn't changed.
RewriteCond %{QUERY_STRING} ^_menu\[callbacks\]
RewriteRule ^$ http://example.com/node/89? [R=301, L]
RewriteCond %{QUERY_STRING} ^_menu
RewriteRule ^$ http://example.com/node/89? [R=301,L]
With the above, I'm getting Internal Server Errors and yet last night when checking (removing the question mark as advised in previous message) I was at least getting 'page not found' errors.
The .htaccess file is at the root, where index.php file is.
There is no sub-directory /taxonomy/...
I'm in the process of seeking advice from my host re - the server logs.
My application is Drupal a Content Management System. I've got clean url's enabled (I believe it's also known as static url's).