Home ›
Stop abusing my old CCK / Views calendar, internet! A quick and dirty how-toStop abusing my old CCK / Views calendar, internet! A quick and dirty how-to
Submitted by Benjamin Melançon on March 6, 2010 - 8:18am
It was simply constant.
Those three errors over and over and over again. All caused by invalid URLs that i sure as heck couldn't find any way to navigate to. So instead of trying to fix Drupal 5 Views 1 era calendar code, we'll just send the lost bots or extremely lost souls on their way-- to the main calendar page, which has no errors. (Nor do any of the expected calendar/2010/
Inside the mod rewrite directive:
<IfModule mod_rewrite.c>
RewriteEngine on
Right under the (unused, commented-out) RewriteBase rule:
RewriteRule ^calendar/([0-9]{1,2})/.+$ /calendar [NC,R=301,L]
And that took care of that clutter in our log!
Searched words:
non-valid invalid URLs somehow hit in /calendar of Drupal 5 CCK Views triggering constant foreach errors
apache rewrite rule if digits
mod rewrite
Comments
Post new comment