Quote:
Originally Posted by rogueteens
i did but no success, it came up with errors (the javascript one). Also, in all honesty, i dont really want to jump languages if i can help it.
The page i want to jump to is called http://www.myself.com/?page_id=2 so i've been trying variations of get_?page_id=2 but i'm shooting in the dark as i dont know the first thing about php!
|
What about the .htaccess tip? I think this one is the easiest to implement.
The problem with php redirection it needs to happen before anything is output, so you'd want to put it in your header at the very top. Maybe in the header.php file of your theme at the very top. Some code like this:
Code:
<?php
if ($_SERVER['REQUEST_URI']=='/?page_id=4')
{
header("Location: http://www.myself.com/?page_id=2");
exit();
}
?>
Is it "?page_id=4" ?
Code:
if ($_GET['page_id']=='4')
{
header("Location: http://www.myself.com/?page_id=2");
exit();
}