The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Redirect without browser address changing ?

Discussion in 'General Discussion' started by markwebstar, Jan 15, 2010.

  1. markwebstar

    markwebstar Registered

    Jan 15, 2010
    Likes Received:
    Trophy Points:
    i'm new to cpanel, having just been transferred to it by my hosting service.

    i have two domain names and used to pay the host to redirect one address to a site hosted on the webspace attached to my other domain. this always worked fine & on redirection, the address bar in the browser still showed the original domain name (not the actual domain name where the page was really located.)

    now i'm on cpanel, is it possible for me to set this up myself ?

    i have tried setting up the domain that needs to be redirected as either an addon or parked domain, but when i set up a redirection it always updates the browser address to the actual location.

    my web host suggested adding
    RewriteEngine on RewriteRule ^(.*)\.html $1\.php
    to the .htaccess file in my public_html folder
    but this doesn't seem to have done anything.

    since i'm not so technical, and in case i haven't explained it too well, then maybe this is clearer ... (these addresses used for example only)

    i need to redirect to
    but i want to stay in the address bar of the browser of anyone that visits that page.

    thanks for any help you can offer. be gentle, it's my first time.

  2. thewebhosting

    thewebhosting Well-Known Member

    May 9, 2008
    Likes Received:
    Trophy Points:
    You will require the URL masking. For that you will need to contact your domain registrar to set the URL masking while forwarding your domain.

Share This Page