Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    May 2010
    Posts
    24

    Default Redirect Domain display same URL?

    At the recommendation of my webhost, I am changing my domain (mydomain.com) from PlusMail to cPanel 1.0 (RC1). At PlusMail, in addition to mydomain.com, I have a parked domain, mydomain.org, which is redirected to mydomain.com. When a browser is directed to www.mydomain.org, it opens mydomain.com, but in the browser's address slot, there continues to appear "mydomain.org" even when the browser follows links within mydomain.com. That is, a person visiting www.mydomain.org is never aware he or she is actually browsing a parked domain because the URL in the address slot always displays www.mydomain.org/whatever.html. My question: Can that be accomplished in cPanel? The tech support people at my webhost aren't sure. They say that in cPanel, the instant a web page opens a parked domain, the URL displayed in the browser's address slot will change from mydomain.org to mydomain.com, and remain mydomain.com as long as the visitor follows relative links in my domain. Thus, a visitor will instantly know that he or she is actually browsing a "different" domain name. (I apologize for the length of this post. I am sure there is a simple, technical way to ask this question, but I don't know it.) Thank you. Stefan

  2. #2
    Member linux7802's Avatar
    Join Date
    Dec 2007
    Posts
    224
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    You want domain mydomain.org parked domain on main domain mydomain.com and once any visitor browser mydomain.org/anything.html its still show domain name mydomain.org in browser and don't be mydomain.com.

    In that case while developing site for your main domain mydomain.com do not define domain name mydomain.com in your any web pages. Always use physical paths for sites link in files. The physical path will be like /home/user/public_html/anything.html etc. So that when ever any visitor browse domain mydomain.org/anythng.html files will be accepted from physical path and not from your domain mydomain.com.
    Regards,
    G R Sonar
    cPanel Hosting Blog

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by stefanmain View Post
    At the recommendation of my webhost, I am changing my domain (mydomain.com) from PlusMail to cPanel 1.0 (RC1).
    The current version of cPanel/WHM is version 11.25. I extremely strongly advise moving to version 11.25.

    Quote Originally Posted by stefanmain View Post
    At PlusMail, in addition to mydomain.com, I have a parked domain, mydomain.org, which is redirected to mydomain.com. When a browser is directed to www.mydomain.org, it opens mydomain.com, but in the browser's address slot, there continues to appear "mydomain.org" even when the browser follows links within mydomain.com. That is, a person visiting www.mydomain.org is never aware he or she is actually browsing a parked domain because the URL in the address slot always displays www.mydomain.org/whatever.html. My question: Can that be accomplished in cPanel? The tech support people at my webhost aren't sure. They say that in cPanel, the instant a web page opens a parked domain, the URL displayed in the browser's address slot will change from mydomain.org to mydomain.com, and remain mydomain.com as long as the visitor follows relative links in my domain. Thus, a visitor will instantly know that he or she is actually browsing a "different" domain name. (I apologize for the length of this post. I am sure there is a simple, technical way to ask this question, but I don't know it.) Thank you. Stefan
    If you use Parked Domains, the user will always see the domain they entered in their browser's address bar as long as your page is coded with relative links. You can view a comparison of Parked Domains vs. Addon Domains at:

    AddonvsParked < AllDocumentation/AllFAQ < TWiki

  4. #4
    Member
    Join Date
    May 2010
    Posts
    24

    Default

    Thanks. First, I apologize. I read the version number in the wrong place. At the expanded Stats, it is 11.25.0-STABLE Build 44718.

    As it happens, I have another domain that has been using cPanel for a short while. It also has a parked domain that is redirected to the main domain. On cPanel's "Parked Domain" page, under "Domains" is the name of the parked domain, say parked.com, under "Domain Root" is /public_html, and under "Redirects to" is the full URL of the main domain, http://www.maindomain.com. When I enter the parked domain into a browser address slot as "http://www.parked.com", the maindomain page opens okay, but in the address bar, the displayed address INSTANTLY changes to "http://www.maindomain.com" Clearly, I have done something wrong. From what I have told you, can you tell what it is?

    At "Subdomains" is "No subdomains are configured", and at "Addon Domains" is "No Addon Domains are configured".

    Also, all the links at maindomain.com to other pages within the website itself are what I think is meant by relative, that is just the name of the page, like books.html not "http://www.maindomain.com/books.html"
    Last edited by stefanmain; 05-12-2010 at 02:39 PM.

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by stefanmain View Post
    T
    As it happens, I have another domain that has been using cPanel for a short while. It also has a parked domain that is redirected to the main domain. On cPanel's "Parked Domain" page, under "Domains" is the name of the parked domain, say parked.com, under "Domain Root" is /public_html, and under "Redirects to" is the full URL of the main domain, http://www.maindomain.com. When I enter the parked domain into a browser address slot as "http://www.parked.com", the maindomain page opens okay, but in the address bar, the displayed address INSTANTLY changes to "http://www.maindomain.com" Clearly, I have done something wrong. From what I have told you, can you tell what it is?
    The redirection you setup is what is causing the domain to change in the URL bar. Click "Manage Redirection" next to the parked domain and click "Disable Redirection." This will remove the redirection and just rely on parked domain functionality (which is what you want based on what you describe).

  6. #6
    Member
    Join Date
    May 2010
    Posts
    24

    Default

    That did it! Thank you.

  7. #7
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by cPanelDavidG View Post
    If you use Parked Domains, the user will always see the domain they entered in their browser's address bar as long as your page is coded with relative links.
    Expanding upon what David said .....

    Many people incorrectly believe that "parked" domains are redirects.

    Actually a "parked domain" in Cpanel is a "serveralias" which is a secondary domain internally to reach the same site content.

    Or, to put that another way ----

    You have have a single web site that answers to multiple domain names

    It is not a redirect to the main domain

    The "parked domain" itself is actually a secondary "main domain"

    Some script programs will override the address bar with whatever
    domain is in the script configuration so if you have a shopping cart or
    CMS system on your site, it may update the web site address bar with
    whatever domain you are using in the configuration for that web
    program and that may be the source of some of the "redirect" misconception

Similar Threads & Tags
Similar threads

  1. Redirect to other domain without changed URL addres.
    By alifazman in forum New User Questions
    Replies: 5
    Last Post: 08-12-2011, 11:37 AM
  2. Please help: Add-on domain redirect to another URL
    By jamesalan in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-25-2011, 04:15 PM
  3. redirect to another domain without the url changing
    By SetLar8 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-20-2007, 12:01 PM
  4. URL redirect parked domain?
    By BigLoveXXX in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-04-2004, 08:01 PM
  5. Sub.Domain redirect to FTP URL?
    By Justin182004 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-18-2003, 07:36 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube