Originally Posted by
djdavedawson
Modify or create /includes/languages/english/html_includes/YOUR_TEMPLETE/define_page_not_found.php file.
PHP Code:
<?php
/* define_page_not_found.php
This script is the last try to redirect the URI request to the
correct page.
*/
// Check URI $_SERVER['REQUEST_URI']
switch (basename($_SERVER['REQUEST_URI'])){
case 'index.php?main_page=page_3': // old page link
header("HTTP/1.1 301 Moved Permanently"); // Tell them that the page has moved
header("Location: index.php?main_page=custom_page"); // new page
break;
/* case 'index.php?main_page=product_info&cPath=64_31&products_id=228': // old page link
header("HTTP/1.1 301 Moved Permanently"); // Tell them that the page has moved
header("Location: index.php?main_page=product_info&cPath=64_31&products_id=229"); // new page
break;
*/
default:
echo '<p><strong>Pleace select you page from our site map below</strong></p>';
}
?>
Skip
Bookmarks