Results 1 to 8 of 8

Redirect based on incoming URL

This is a discussion on Redirect based on incoming URL within the Off-Topic & Chit Chat forums, part of the Focus on Members category; Hi Guys, I need to redirect this link: http://www.servercommand.org/downloa...do=file&id=288 to Gamers' Life Line - Downloads! - Call of Duty 4: ...

  1. #1
    Member
    Real Name
    Lane
    Join Date
    Jul 2009
    Posts
    59
    Liked
    0 times

    Redirect based on incoming URL

    Hi Guys,

    I need to redirect this link:

    http://www.servercommand.org/downloa...do=file&id=288

    to

    Gamers' Life Line - Downloads! - Call of Duty 4: Modern Warfare v1.7 Patch (.exe)

    I changed domains a while back from servercommand to gamerslifeline, however I still have allot of sites linking to the first link.

    So I need a way when people hit the above link they will be redirect to the second one.

    I own both sites and both are completely hosted, I cannot re-park servercommand on the gamerslifeline domain as I am now perusing an all new site on that domain.

    So how do I get the traffic coming in on the first link to the second link automatically.

    Thanks!

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,752
    Liked
    642 times
    Blog Entries
    2
    you can simply put an htaccess file in the .org domain root with the following:

    Code:
    RewriteEngine on 
    RewriteRule ^/downloads.php?do=file&id=288$ http://www.gamerslifeline.com/downloads.php?do=file&id=288 [L,R=301]
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Member
    Real Name
    Lane
    Join Date
    Jul 2009
    Posts
    59
    Liked
    0 times
    Quote Originally Posted by Brian Cummiskey View Post
    you can simply put an htaccess file in the .org domain root with the following:

    Code:
    RewriteEngine on 
    RewriteRule ^/downloads.php?do=file&id=288$ http://www.gamerslifeline.com/downloads.php?do=file&id=288 [L,R=301]
    Hi Brian,

    I am unable to get it to work, would that be because the files does not actually exist on the .org domain?

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,752
    Liked
    642 times
    Blog Entries
    2
    It doesn't have to.

    Are you still getting a 404?

    make sure if you have other rules in your htaccess that it is the FIRST rule after the rewriteengine on command.
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    Member
    Real Name
    Lane
    Join Date
    Jul 2009
    Posts
    59
    Liked
    0 times
    Quote Originally Posted by Brian Cummiskey View Post
    It doesn't have to.

    Are you still getting a 404?

    make sure if you have other rules in your htaccess that it is the FIRST rule after the rewriteengine on command.
    Hi Brian,

    I even moved the whole web site on the .org to a sub-folder and only had the two lines in the .htaccess file.

    With that, I just get the page cannot be found, 404 error.

    I have i have set back to that way, so the only thing I have it the .htaccess file in the root.

  6. #6
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,752
    Liked
    642 times
    Blog Entries
    2
    Try this:

    Code:
    RewriteEngine on 
    Redirect permanent /downloads.php http://www.gamerslifeline.com/downloads.php?do=file&id=288
    Just don't use a script called downloads.php on the replacement site on .org.
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  7. #7
    Member
    Real Name
    Lane
    Join Date
    Jul 2009
    Posts
    59
    Liked
    0 times
    Quote Originally Posted by Brian Cummiskey View Post
    Try this:

    Code:
    RewriteEngine on 
    Redirect permanent /downloads.php http://www.gamerslifeline.com/downloads.php?do=file&id=288
    Just don't use a script called downloads.php on the replacement site on .org.
    That worked, thank you.

  8. #8
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,752
    Liked
    642 times
    Blog Entries
    2
    great
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Removing Incoming LinkBacks
    By ssmarket.net in forum Troubleshooting
    Replies: 1
    Last Post: 09-29-2007, 02:29 PM
  2. What are incoming Pingbacks
    By GBSF in forum General Discussion
    Replies: 1
    Last Post: 09-26-2006, 01:07 PM
  3. Incoming Pings and Trackbacks
    By majordude in forum General Discussion
    Replies: 4
    Last Post: 08-24-2006, 11:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •