Your technology certification is waiting. Enroll in Cloud Class ®
Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
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.
<?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
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
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.