mod_rewrite usage

Discussion in 'Apache' started by vipinc, Sep 25, 2006.

  1. #1
    Hi,
    I have a subdomain how.mysite.com, which has been redirected to www.mysite.com:3333. Now I want the URL that shows up at the address bar as how.mysite.com. I think this is done using the rewrite rule

    How do I do it?
    Please advise .. I am a newbie to this

    Thanx
     
    vipinc, Sep 25, 2006 IP
  2. explorer

    explorer Well-Known Member

    Messages:
    463
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    110
    #2
    If I understand you correctly (I'm not sure I do) I do not think what you are asking is possible. Why not just put the content you want people to see on the subdomain how.mysite.com with no redirection?
     
    explorer, Sep 26, 2006 IP
  3. DrMalloc

    DrMalloc Peon

    Messages:
    130
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Rewriting as you'd like it can only be done with the parts after the / in the URL, not the subdomain/port/domain. if you want to do that, you'll need to use something like mod_proxy to forward the requests on to the second site, or some sort of domain cloaking
     
    DrMalloc, Sep 26, 2006 IP