// Try to redirect first $curl = $_SERVER['REQUEST_URI']; // current url $url = ''; // new url if (stristr($curl,"index.shtml")) $url = '/index.php'; //Home Page elseif (stristr($curl,"/saws")) $url = '/info/pwd-saws/index.php'; //SAWS Page elseif (stristr($curl,"/gis")) $url = '/info/pwd-pd-gis/index.php'; //GIS Home Page elseif (stristr($curl,"/maps")) $url = '/info/pwd-pd-gis/maps.php'; //GIS Maps Page elseif (stristr($curl,"/planning")) $url = '/info/pwd-pd/index.php'; //Planning Home Page elseif (stristr($curl,"/clerk")) $url = '/info/cd/index.php'; //Clerk/Treasurer Home Page elseif (stristr($curl,"/fire")) $url = '/info/fd/index.php'; //Sheridan Fire and Rescue elseif (stristr($curl,"/hr")) $url = '/info/hr/index.php'; //Human Resources Depatment elseif (stristr($curl,"/kgc")) $url = '/info/kgc/index.php'; //Kendrick Golf Course elseif (stristr($curl,"/police")) $url = '/info/pd/index.php'; //Police Depatment elseif (stristr($curl,"/court")) $url = '/info/pd/court.php'; //Police Depatment elseif (stristr($curl,"/pw")) $url = '/info/pwd/index.php'; //Public Works Depatment elseif (stristr($curl,"/building")) $url = '/info/pwd-bd/index.php'; //Building Division elseif (stristr($curl,"/linden")) $url = '/info/pwd-proj/linden.php'; //Linden Ave Project elseif (stristr($curl,"/rfp")) $url = '/info/pwd-rfp/rfp.php'; //RFP's Project elseif (stristr($curl,"/pathways.php")) $url = '/info/assets/pwd-pd-gis/maps/trailsmap.pdf'; //Pathways Map elseif (stristr($curl,"/info/pathways.php")) $url = '/info/assets/pwd-pd-gis/maps/trailsmap.pdf'; //Pathways Map elseif (stristr($curl,"/broadway-gould")) $url = '/info/pwd-proj/bg.php'; //Broadway-Gould Project elseif (stristr($curl,"/southpark")) $url = '/info/pwd-proj/southpark.php'; //South Park Project elseif (stristr($curl,"/thornerider")) $url = '/info/pwd-proj/thornerider.php'; //Thorne-Rider Park Project elseif (stristr($curl,"feedback.shtml")) $url = '/email/register.php'; //Request More Information elseif (stristr($curl,"search.shtml")) $url = '/search.php'; //Search this Site elseif (stristr($curl,"links.shtml")) $url = '/rl.php'; //Links elseif (stristr($curl,"card.shtml")) $url = '/ec.php'; //Send a Postcard elseif (stristr($curl,"bin/birdcast.cgi")) $url = '/sitemap.php'; //Recommend Us to a Friend elseif (stristr($curl,"/leafcollection")) $url = '/info/assets/pwd-sw/Brochure Leaf Collection FINAL.pdf'; //Send a Postcard elseif (stristr($curl,"/recycle")) $url = '/info/pwd-sw-rc/index.php'; //Recycle Page if ($url != '') { header("HTTP/1.1 301 Moved Permanently"); header('Location: '.$url); return; } ?> $g_path = $_SERVER['DOCUMENT_ROOT']; $g_title = "Page Not Found"; $g_category = 'other'; $g_module = 7; $g_parent = "/index.php"; ?>
(=$curl?>)