Urghhhh 301 redirects

Discussion in 'Web Design' started by forceduprise, Sep 17, 2009.

  1. forceduprise

    forceduprise Newbie

    Joined:
    May 19, 2009
    Messages:
    47
    Likes Received:
    15
    Okay, here's the deal. a few months ago i stumble across http://thepornstarseeker.com for 5 bucks at godaddy. I looked it up, it's a PR1, 2 year old domain with a shitload of backlinks so I figure I can't lose right? I slap WP on there with an OK theme, sign up to a shitload of affiliates and go to work. I must have done something good because now it has gone up to $11k on dnscoop(yeah not accurate, but I have it up on Sedo now and I should make an OK flip considering i got it for 5 bucks). In the meantime, I have noticed that a boatload of the backlinks and traffic point to a phbb forum that I am not about to rebuild just to collect them up. Instead, I am trying to redirect all of that useful traffic to my rude aff link. My question is, how do I set up a wildcard 301 to a directory (http://thepornstarseeker.com/phbb/) instead of trying to catch individual filenames from awstat and putting them in one by one?? I do have an ok 404 page set up to lead them back in the right direction, but I think I will make more loot by sending them directly to rude.

    TL;DR

    How do i set up 301 redirect wildcards for a directory???
     
  2. MuonTrail

    MuonTrail Registered Member

    Joined:
    Mar 5, 2009
    Messages:
    96
    Likes Received:
    93
    Off the top of my head, try something like this in a .htaccess file:

    Code:
    redirectMatch 301 (http://domain.com/phpbb/.*)$ http://aff.link.goes.here
    The .htaccess for this should go in your root directory for your domain.
     
    • Thanks Thanks x 1
  3. forceduprise

    forceduprise Newbie

    Joined:
    May 19, 2009
    Messages:
    47
    Likes Received:
    15
    Hell yeah!!!! all i missed was the damned dot lol. Thanks, it works like a champ!