Skip to main content

Home/ Drupal for Developers/ Group items tagged not found

Rss Feed Group items tagged

Daniel Gregoire

Reducing server resource utilization for busy sites by implementing fast 404s in Drupal... - 3 views

  • // List of extensions for static files $exts = 'txt|png|gif|jpe?g|shtml?|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp|xml'; // It is not an imagecache path, which we allow to go through Drupal if (!strpos($_SERVER['QUERY_STRING'], 'imagecache')) { // It is not our main feed page if ($_SERVER['QUERY_STRING'] != 'rss.xml') { // Is it a static file? if (preg_match('/\.(' . $exts . ')$/', $_SERVER['QUERY_STRING'])) // Just send a 404 right now ... { header('HTTP/1.0 404 Not Found'); print '<html>'; print '<head><title>404 Not Found</title></head>'; print '<body><h1>Not Found</h1>'; print '<p>The requested URL was not found on this server.</p>'; print '</body></html>'; exit(); } } }
  •  
    Fast Drupal 404 handling for static files.
clariene Austria

Don't Just Get A Website… Get Discovered! - 2 views

If you're not being found on the search engines, then it's likely you didn't have an seo web development. A lot of web designers out there know how to make great looking websites that Google can't ...

started by clariene Austria on 30 May 12 no follow-up yet
1 - 2 of 2
Showing 20 items per page