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.

htaccess help needed

Discussion in 'Apache' started by ZuraX, Aug 9, 2006.

  1. #1
    Hoping someone here can help..

    Right now I have a htaccess redirecting all my parked domains to one of my domains.
    I would like to have it redirect them to http://www.some3rdparty.com/mydomain.com but have no idea how to get htaccess to input the domain.com part depending on which domain the user has went to.

    EX: They goto http://www.123domain.com they get sent to http://www.some3rdparty.com/123domain.com
    If they goto http://www.456domain.com they get sent to http://www.some3rdparty.com/456domain.com

    Thanks for any help.
     
    ZuraX, Aug 9, 2006 IP
  2. smatts9

    smatts9 Active Member

    Messages:
    1,089
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    88
    #2
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www\.123domain\.com$
    RewriteRule ^(.*)$ http://www.some3rdparty.com/123domain.com$1 [R=301,L]
    </IfModule>

    This should work.
     
    smatts9, Aug 10, 2006 IP