Return to Snippet

Revision: 16434
at August 4, 2009 03:31 by Meander365


Initial Code
<!-- Create the file wp-404-handler.php in your base Wordpress folder. -->

<?php
$_SERVER['REQUEST_URI'] = substr($_SERVER['QUERY_STRING'], strpos($_SERVER['QUERY_STRING'], ':80')+3);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
include('index.php');
?>

Initial URL
http://it.megocollector.com/?p=795

Initial Description
Create a custom 404 handler page which redirects you to the correct page.

Initial Title
Wordpress Pretty Permalinks on a Shared Server

Initial Tags
php, wordpress

Initial Language
PHP