View Single Post
Old 11-18-2010, 07:31 AM  
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Quote:
Originally Posted by rogueteens View Post
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();
}
__________________

Last edited by Brujah; 11-18-2010 at 07:38 AM..
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote