Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Mar 2005
    Posts
    12

    Exclamation Addon domain auto redirects

    I have setup an addon domain and during the process it automatically setup a subdomain and did a redirect to it.

    I want the add-on domain to not redirect. I want to just pull it up in the browser with the add-on domain in the address bar but instead it shows the subdomain.

  2. #2
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    Quote Originally Posted by kaidok.net View Post
    I have setup an addon domain and during the process it automatically setup a subdomain and did a redirect to it.

    I want the add-on domain to not redirect. I want to just pull it up in the browser with the add-on domain in the address bar but instead it shows the subdomain.
    This is how add-on domain feature works. If you wish to host an entirely new site on the current hosted domain then it will do below things....

    1) Create newdirectory
    2) Setup a pointer to newdirectory.olddomain.com
    3) Setup a pointer to http://www.newdomain.com

    Now, anything you will upload into newdirectory can be viewed by going to both http://www.newdomain.com and http://newdirectory.olddomain.com.

  3. #3
    Member
    Join Date
    Mar 2005
    Posts
    12

    Exclamation

    Ok. But one problem we are running into is that if we navigate to http://domain.com the page is blank or shows a place holder for an unfound image. If I go to http://subdomain.domain.com the site works perfectly fine. If I "view source" from my browser the html is exactly the same but it is not displaying.

    Has anyone ever seen this before. It is rather strange that the page is not functioning right from the add-on domain URL. It is a simple html page with 1 image in it.

  4. #4
    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 kaidok.net View Post
    Ok. But one problem we are running into is that if we navigate to http://domain.com the page is blank or shows a place holder for an unfound image. If I go to http://subdomain.domain.com the site works perfectly fine. If I "view source" from my browser the html is exactly the same but it is not displaying.

    Has anyone ever seen this before. It is rather strange that the page is not functioning right from the add-on domain URL. It is a simple html page with 1 image in it.
    In my experience, this is caused by a X/HTML or CSS coding error. Usually caused by the X/HTML or CSS not being built with portability in mind.

  5. #5
    Member
    Join Date
    Mar 2005
    Posts
    12

    Default

    Thanks David. I will look into that.

  6. #6
    Member
    Join Date
    Mar 2005
    Posts
    12

    Default

    Well that seemed to be one piece of it. Now at least I get a placeholder that is the same size as the image and the image mapping is active but no image. Here is the code, as you can see it is the most basic it could be. I have tried the link to the images as the actual URL path and as ./images/main.JPG. Both produce the exact same thing.

    edit: I just found out that if you go to http://heatherdmcgee.cultofnot.com and then http://heatherdmcgee.com the image shows up , but if you hit f5 the image reverts back to a placeholder. This seems like very odd behavior.


    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    
    <body>
    <img src="http://heatherdmcgee.com/images/main.JPG" width="626" height="511" hspace="300" vspace="0" border="0" usemap="#Map"> 
    <map name="Map">
      <area shape="rect" coords="515,11,585,56" href="http://heatherdmcgee.com/about.htm" target="_self">
    </map>
    </body>
    </html>
    Last edited by kaidok.net; 05-28-2008 at 11:17 AM.

  7. #7
    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 kaidok.net View Post
    Well that seemed to be one piece of it. Now at least I get a placeholder that is the same size as the image and the image mapping is active but no image. Here is the code, as you can see it is the most basic it could be. I have tried the link to the images as the actual URL path and as ./images/main.JPG. Both produce the exact same thing.

    edit: I just found out that if you go to http://heatherdmcgee.cultofnot.com and then http://heatherdmcgee.com the image shows up , but if you hit f5 the image reverts back to a placeholder. This seems like very odd behavior.


    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    
    <body>
    <img src="http://heatherdmcgee.com/images/main.JPG" width="626" height="511" hspace="300" vspace="0" border="0" usemap="#Map"> 
    <map name="Map">
      <area shape="rect" coords="515,11,585,56" href="http://heatherdmcgee.com/about.htm" target="_self">
    </map>
    </body>
    </html>
    Both pages work equally well for me (image displays etc.). What you describe is indicative of a client-side issue. You may wish to consider clearing your cache.

  8. #8
    Member
    Join Date
    Mar 2005
    Posts
    12

    Default

    I know it is not client side as I have tried with 3 different PC's and all produce the same result. When you went to the domain, rather than the subdomain, did you press f5 and refresh it? When I do on all three machines the image changes to a place holder.

  9. #9
    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 kaidok.net View Post
    I know it is not client side as I have tried with 3 different PC's and all produce the same result. When you went to the domain, rather than the subdomain, did you press f5 and refresh it? When I do on all three machines the image changes to a place holder.
    Odd, the image on the page: http://heatherdmcgee.com/images/main.JPG

    ... generates a HTTP 403. Are you using hotlink protection by chance?

  10. #10
    Member
    Join Date
    Mar 2005
    Posts
    12

    Default

    David, you're a genious. I would not have even thought that. The customer did have it turned on so I added the domain to the allowed referers and viola, problem fixed.

    Thanks a bunch to you and all of the Cpanel folks. You guys have been great.

Similar Threads & Tags
Similar threads

  1. Addon domain redirects to main domain
    By prkl in forum New User Questions
    Replies: 4
    Last Post: 09-13-2010, 10:08 PM
  2. Addon domain - it redirects itself!
    By Dzordz in forum New User Questions
    Replies: 3
    Last Post: 07-13-2010, 08:37 AM
  3. Cpanel & Addon domain redirects...
    By jvs_hosting in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-27-2007, 01:32 PM
  4. addon redirects to main domain
    By dan.andrus in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-03-2006, 05:45 AM
  5. Replies: 1
    Last Post: 02-23-2005, 04:24 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube