.htaccess question

Discussion in 'Apache' started by chandan123, Apr 2, 2008.

  1. #1
    how can i do like this

    hxxp://sub1.domain1.com/tag/sample.html --> hxxp://domain2.com/tag/sample.html

    hxxtp://sub1.domain1.com/samplefile.html --> hxxp://domain2.com/samplefile.html

    and so on

    using .htaccess or any other method ?

    thanks
    chandan
     
    chandan123, Apr 2, 2008 IP
    bogart likes this.
  2. bogart

    bogart Notable Member

    Messages:
    10,911
    Likes Received:
    509
    Best Answers:
    0
    Trophy Points:
    235
    #2
    bogart, Apr 13, 2008 IP
    chandan123 likes this.
  3. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #3
    thanks will look into that
    my idea was if i facing shortage of bandwidth in one domain i just wanna redirect to another domain :)
    it sorted out but will see in that forum
     
    chandan123, Apr 14, 2008 IP
  4. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #4
    There's also a BIG rewrites sticky thread at the top of thie Apache section that probably already contains the answer you are loking for without you even needing to ask the question and wait for the answer.
     
    Ladadadada, Apr 15, 2008 IP
  5. bogart

    bogart Notable Member

    Messages:
    10,911
    Likes Received:
    509
    Best Answers:
    0
    Trophy Points:
    235
    #5
    What about getting a reseller acount so that you can share the bandwidth accross all your domains :)
     
    bogart, May 4, 2008 IP
    jackass2007 likes this.
  6. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #6
    currently not possible anyway that time i was using 1Gb bandwidth :D

    now its solved thanks
     
    chandan123, May 4, 2008 IP