Experts Exchange connects you with the people and services you need so you can get back to work.
<?php // RAY_temp_hnEE.php
// MAP OLD DESIGN TO NEW DESIGN LIKE THIS /*
// YOU MAY WANT THIS OR NOT - NOT SURE
// AN ARRAY TO ORGANIZE THE PAGE NAMES AND THE FOLDERS
$map = array
( 'services' => 'subfolderA'
, 'contact' => 'subfolderB'
// ASSUMPTION: WE DO NOT KNOW WHERE TO GO
$url = NULL;
// IS THE REQUEST PRESENT AND WELL-FORMED?
$page = isset($_GET['page]) ? strtolower(trim($_GET['page'])) : NULL;
// IS IT A REQUEST FOR A PAGE WE KNOW ABOUT?
if (array_key_exists($page, $map))
// SET THE DESTINATION PAGE
// IF WE KNOW WHERE TO GO
header("HTTP/1.1 301 Moved Permanently");
// HANDLE THE 404 NOT FOUND CONDITION HERE...
Open in new window
The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.