This appears to work, it would have to be the first thing on doc.php:
PHP Code:
<?php
if(isset($_GET['title']) && $_GET['title'] === 'john'){
header('Location: ./doc.php?renamed=john&id=3340');
exit;
}
?>
Or:
PHP Code:
<?php
if(isset($_GET['title']) && $_GET['title'] === 'john'){
header("HTTP/1.1 301 Moved Permanently");
header('Location: ./doc.php?renamed=john&id=3340');
exit;
}
?>
Depending upon the exact reason you're doing this, you might want to be more specific, like eliminating the possibility of all other post and get values, and/or be more general by redirecting all title to renamed, and possibly having a lookup for what each name would have as id.
Bookmarks