Andem - 11:00 pm on Feb 10, 2013 (gmt 0)
header("HTTP/1.1 301 Moved Permanently");
header("Location: /12345-dirks-gourmet-restaurant ");
This is incorrect and will not provide expected results. Your location should be something like
Also since this is the Google forum, you should return 404 errors when a page no longer exists and not use 301s for an infinite number of URLs (in my experience).