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

How to redirect my domain url like this

Discussion in 'Blogging' started by saurabh82, Dec 30, 2013.

  1. saurabh82

    saurabh82 BANNED BANNED

    Joined:
    Sep 27, 2013
    Messages:
    1,227
    Likes Received:
    131
    I have one site which contains the name of branded trademark (pinterest)
    my site url is pinterest.mydomain.com/bse34
    and i want to redirect my url to cool.mydomain.com/bse34
    i want to change all redirects like this way
    so in this way i will not loose my old url traffic.
    How to do this
    I have installed vestacp panel.
    thnks
     
  2. manking

    manking Regular Member

    Joined:
    Nov 27, 2013
    Messages:
    455
    Likes Received:
    134
    Occupation:
    No Job
    Location:
    Tallinn
    If using wordpress there are many redirect plugins, but there are many php redirect scripts too
     
  3. GringoMonkey

    GringoMonkey Regular Member

    Joined:
    Dec 26, 2013
    Messages:
    445
    Likes Received:
    175
    Hi,

    Here is a simple redirect script you could use

    Just place it in your index page

    <script>

    location = "YOUR WEBSITE FULL URL";

    </script>
     
  4. saurabh82

    saurabh82 BANNED BANNED

    Joined:
    Sep 27, 2013
    Messages:
    1,227
    Likes Received:
    131
    it doesnot work.I have tried placing in index.php :\
    i have tried many plugins but they are not working.
     
  5. Mr.Whitehat

    Mr.Whitehat Senior Member

    Joined:
    Apr 23, 2009
    Messages:
    855
    Likes Received:
    220
    Occupation:
    Wandering Around !
    Location:
    Dating Moolah Babe^
    create the .php file which u wanna call for redirection and input the following code and replace the url in the field.

    <SCRIPT LANGUAGE="javascript">
    location.href = "url here";
    </SCRIPT>
     
  6. GringoMonkey

    GringoMonkey Regular Member

    Joined:
    Dec 26, 2013
    Messages:
    445
    Likes Received:
    175
    I can only echo what Mr.Whitehat said.

    It is a standard redirect script.
     
  7. Rockers

    Rockers BANNED BANNED

    Joined:
    Jul 4, 2013
    Messages:
    971
    Likes Received:
    52
    use 301 redirect from your cpanel.
     
  8. Ghoztseo

    Ghoztseo Power Member

    Joined:
    Nov 24, 2012
    Messages:
    523
    Likes Received:
    208
    Occupation:
    High IQ
    Location:
    Sri Lanka
    Probably i don't have a website but i need to redirect my domain to one of link.. So can i do it on Domain control panel by domain forwarding huh!
     
  9. SimonRohde

    SimonRohde Regular Member

    Joined:
    Mar 28, 2013
    Messages:
    208
    Likes Received:
    30
    <?php

    header("Location: index.php?s=iLikeCheese");

    ?>
     
  10. Aty

    Aty Jr. VIP Jr. VIP

    Joined:
    Jan 27, 2011
    Messages:
    5,411
    Likes Received:
    3,699
    Home Page:
  11. CPAENGINE

    CPAENGINE BANNED BANNED

    Joined:
    Mar 15, 2014
    Messages:
    53
    Likes Received:
    1
    redirect plugins are all over the internet, find them bro