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.

Buying Need htaccess that redirects to a sub-domain

Discussion in 'Programming' started by nt99, Aug 23, 2010.

  1. #1
    taken care of
     
    Last edited: Aug 23, 2010
    nt99, Aug 23, 2010 IP
  2. Exa

    Exa Active Member

    Messages:
    471
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    85
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Place your current .htaccess under you.example.com

    For example.com,

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://you.example.com/$1 [R=301,L]
    Code (markup):
     
    Exa, Aug 23, 2010 IP
  3. [GV]AnarchY

    [GV]AnarchY Well-Known Member

    Messages:
    599
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    [GV]AnarchY, Aug 23, 2010 IP
  4. nt99

    nt99 Active Member

    Messages:
    320
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Thanks to everyone who sent me messages....this has been taken care of by my hosts. None of the codes I received here were quite right because of the OTHER rewrite rules in the htaccess...but it's all good now. Thanks again.
     
    nt99, Aug 23, 2010 IP
  5. tanmoy1981

    tanmoy1981 Member

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    //301 Redirect Entire Directory
    RedirectMatch 301 example.com(.*) you.example.com/$1
     
    tanmoy1981, Aug 23, 2010 IP