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.

Redirect issues

Discussion in 'Apache' started by swd, May 8, 2006.

Thread Status:
Not open for further replies.
  1. #1
    swd, May 8, 2006 IP
  2. kkibak

    kkibak Peon

    Messages:
    1,083
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #2
    kkibak, May 8, 2006 IP
  3. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Use this instead, if you want all URLs in http://www.subdomain.domain.com to go to the corresponding URL at http://subdomain.domain.com
    
    <IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteBase / 
    RewriteCond %{HTTP_HOST} ^www\.subdomain\.domain\.com [NC] 
    RewriteRule ^(.*) http://subdomain.domain.com/$1 [L,R=301] 
    </IfModule> 
    
    Code (markup):
     
    exam, May 8, 2006 IP
  4. kkibak

    kkibak Peon

    Messages:
    1,083
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #4
    oops, i thought you only wanted one subdomain redirected. like exam said if you want em all his code is the way to go.
     
    kkibak, May 8, 2006 IP
    exam likes this.
  5. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No, you're right, that's what the question asks, I just read between the lines.
     
    exam, May 8, 2006 IP
  6. swd

    swd Guest

    Messages:
    294
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks guys! :D

    swd
     
    swd, May 8, 2006 IP
    exam likes this.
Thread Status:
Not open for further replies.