1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help me with the Redirection

Discussion in 'Programming' started by Alex Joe, Mar 1, 2017.

  1. #1
    I don't know the name of redirection. I want to redirect some tags & categories using own website.
    For an example:
    http://www.mydomain.com/tag/tag-name/ to http://www.mydomain.com/
    http://www.mydomain.com/tag/tag-name-2/ to http://www.mydomain.com/
    http://www.mydomain.com/category/category-name/ to http://www.mydomain.com/
    http://www.mydomain.com/category/category-name-2/ to http://www.mydomain.com/
    Code (markup):
    How to create this type of redirection on htaccess???
    Is is possible?
     
    Alex Joe, Mar 1, 2017 IP
  2. accel

    accel Well-Known Member

    Messages:
    142
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    133
    #2
    Yes, creating an htaccess file will allow you to specify url redirections for your site. You should be able to find lots of htaccess tutorials out there. You just create the file, and then need to know how to write each redirection. It is not that easy but find a tutorial and you will get there.
     
    accel, Mar 1, 2017 IP
  3. Alex Joe

    Alex Joe Member

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #3
    Do you have any helpful suggestion? I'm looking for programming help, i already check out there hundred of threads.
     
    Alex Joe, Mar 1, 2017 IP
  4. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #4
    To redirect a sub directory to the root directory you can use:

    Redirect 301 /tag/tag-name http://www.mydomain.com/
    Code (markup):
     
    RoseHosting, Mar 4, 2017 IP
  5. mkkhatri

    mkkhatri Member

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #5
    it might be 301 or 302 redirection right ?
     
    mkkhatri, Apr 6, 2017 IP