1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect code for wordpress

Discussion in 'Hire a Freelancer' started by sigmafactor, Feb 10, 2011.

Tags:
  1. sigmafactor

    sigmafactor Registered Member

    Joined:
    Feb 18, 2010
    Messages:
    52
    Likes Received:
    16
    Occupation:
    Engineer
    Location:
    Porto Alegre/Brazil
    Home Page:
    I need to insert a code (java or PHP) that I already have in my wordpress site in order to redirect it to my new .mobi website, and I do not know how/where can I do this.

    This code will 'note' when the access is made using a mobile device and will show a proper site (my .mobi one), not my regular wp site.

    If there is here a wordpress and/or PHP expert who knows how to do it without jeopardizing my site we need to talk.

    thanks in advance
    Sigma
     
  2. mastengz

    mastengz Newbie

    Joined:
    Dec 12, 2010
    Messages:
    22
    Likes Received:
    2
    Any mobile look? Like IPhone or standard mobile (non touch screen)?
    I can do that.
    Hit me a PM :)
     
  3. zelma143

    zelma143 Power Member

    Joined:
    Jun 25, 2010
    Messages:
    571
    Likes Received:
    37
    Occupation:
    PHP programmer,Bot maker,iMacro script maker
    add this on your index file..

    header ("Location: http://yournewsite");

    or for mobile version

    hxxp : // detectmobilebrowsers.mobi/

    it can help you..
     
    Last edited: Feb 11, 2011
  4. vicky00

    vicky00 Regular Member

    Joined:
    May 10, 2010
    Messages:
    368
    Likes Received:
    118
    Not a big deal
     
  5. dichotom

    dichotom Jr. VIP Jr. VIP

    Joined:
    Dec 9, 2008
    Messages:
    1,917
    Likes Received:
    544
    I've done this on a site (with probably the same script you got ahold of) the code goes at the VERY TOP of the header.php file of your theme.