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

htaccess - how to redirect certain pages to homepage?

Discussion in 'Black Hat SEO' started by nonai, May 10, 2014.

  1. nonai

    nonai Power Member

    Joined:
    Oct 10, 2013
    Messages:
    524
    Likes Received:
    63
    htaccess question

    I have a domain that is part of my small PBN. It has a lot of inner pages. All of these inner pages contain weird characters in their URLs, like ? % =

    I want to redirect these pages to the homepage to pass some link juice to the homepage. I dont want to redirect all pages that the domain has. Just these few pages. I have a list of all the pages I want redirected.

    so for example, I want to redirect these:
    domain.com/blog
    domain.com/homepage/index.php?jsfisjfisd?option=3
    domain.com/homepage/index.php?jsfisjfisd?option=4
    domain.com/homepage/index.php?jsfisjfisd?option=55

    I dont want to redirect anything else.

    How can I do this? I have tried googling but all the examples online never have complex URL structures. I know how to do domain.com/blog but not the other ones.