Learn about Centmin Mod LEMP Stack today
Become a Member

Wordpress Redirect

Discussion in 'Blogs & CMS usage' started by Matt Williams, Apr 22, 2016.

  1. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    2:43 PM
    latest
    10
    Trying to figure out how to do this redirect. I need to be able to redirect example: mydomain.com/f ----> to a facebook page or mydomain.com/t to redirect to the twitter page but everything I have tried will redirect any link with a "f" or a "t" in it so I am a bit frustrated. Anyone want to help?
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,193
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,143
    Local Time:
    4:43 AM
    Nginx 1.13.x
    MariaDB 5.5
    simplest method is best i just create a directory at public/f and in it a index.php file with
    PHP:
    <?
    Header("Location: https://facebook.com/yourpage");
    ?>
     
  3. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    2:43 PM
    latest
    10
    That's an idea I didn't even think about! Thanks Eva!