Redirect subdomain keep URL

Discussion in 'Installation/Configuration' started by ikrudolf, Sep 18, 2013.

  1. ikrudolf

    ikrudolf Member

    I want to redirect a subdomain and keep the URL in the address bar.

    This is the subdomain: http://live.radiof.nl (this address should stay in the address bar)
    This is the redirect address: http://stream.radiof.nl:8000

    How to get this done with a apache mod_rewrite?
     
  2. TiTex

    TiTex Member

    take a look at mod_proxy ...something like this should do the trick

    Code:
    <VirtualHost *:80>
        ServerAdmin admin@yourdomain.com
        ServerName live.radiof.nl
        ProxyPass / http://stream.radiof.nl:8000/
        ProxyPassReverse / http://stream.radiof.nl:8000/
        ErrorLog logs/radiof.nl-error.log
    </VirtualHost>
    
     
    Last edited: Sep 19, 2013

Share This Page