Sub-domain vs. add-on domain

Anything related to UNFLUX.net hosting services and support.

Sub-domain vs. add-on domain

Postby tbowick on Sat Dec 09, 2006 9:36 pm

I am going to purchase another domain and have plenty of space and bandwidth to host it with my current package. In the future, if it is successful, it will probably need to be upgraded, given a shopping cart, etc.

MY questions is: what is the difference between adding an additional domain and creating a sub-domain? I saw that one additional domain is now allowable. Do I need to put in the unflux nameservers when I purchase it, or should I transfer it later? Should I make it a sub, or an add-on?

clueless,

Patrick Bowick
tbowick
Registered User
 
Posts: 24
Joined: Tue Jul 27, 2004 10:26 pm

Postby Ganceann on Sun Dec 10, 2006 4:47 am

The simple answer is an addon domain has its own identity and is not associated with any other domain.

example.com = domain
sub.example.com = subdomain of example.com (ie example.com has to appear in the url).

If you have 2 seperate identities (or products that are totally not related), then it would make sense to have 2 seperate identities (or domains) that are focussed purely on the individual products rather than trying to dillute a website and have it carry multiple themes.

In otherwords, search engines are more likely to rank your site better and more appropriately if your website has a consistent theme rather than multiple themes that make your site less of an authority site (think niche areas and why they are successful - it is down to looking for specific content and if it is the only theme on a website, then your site will rank better for almost all keywords associated with it if you have optimised your site for that area).

The other part of your question:

For your account to be able to host addon domains you will need to have it pointed at unflux.net servers (much the same as you done for your original site).

I think the only difference with adding an addon domain is that you need to give it a folder name that is then associated with your main hosting account. (I haven't checked this out yet but I will be moving my other domain over to here very soon as well as likely upgrading my package as I plan to develop another website next year and have so far been enjoying some success with my site since I moved it to unflux - basically I have managed to get my site from a maximum of 150 per day up to 299 yesterday (almost all from search engines - although weekends are the time when my traffic would spike a bit - the general trend has meant virtually double traffic since moving away from an overcrowded shared hosting plan with one of the major companies).

ps. Originally my site was a subdomain but is now on its own domain (so the traffic boost could simply be the the fact the domain name has its own identity)
Ganceann
Registered User
 
Posts: 23
Joined: Sun May 14, 2006 5:23 pm

add-on domain won't load images

Postby tbowick on Fri Dec 15, 2006 7:37 pm

Congrats on the traffic boost! It's always great when you're site is getting overcrowded. I suppose that just means that more and more people are visiting.


Technical Support needed:
I have the nameservers pointing to the right place now, and when I type in domain2.com it lists that as the address, even though it's pointing to a folder on domain1.com. So the redirection works fine of that. It even finds the "index.html" file. For some reason the images will not load. It shows the placeholders but just gives me the broken image link icon for all the images. If I type the address of the image itself in, it goes to the image and it shows up fine. But even copying and pasting that address into the <img src="...> still gives me a broken link.

Any idea what the problem here is?

Thank you,
Patrick Bowick
tbowick
Registered User
 
Posts: 24
Joined: Tue Jul 27, 2004 10:26 pm

Postby tbowick on Fri Dec 15, 2006 7:49 pm

I removed the redirection from the "sub-domain" category, and apparently now it loads the images fine, but no longer shows domain2.com in the address bar, and instead shows domain1.com/subdomainfoldername. This is getting more and more frustrating. Any help would be appreciated.

Thank you,
Patrick Bowick
tbowick
Registered User
 
Posts: 24
Joined: Tue Jul 27, 2004 10:26 pm

Postby UNFLUX on Mon Dec 18, 2006 2:29 pm

The image problem is simply with your paths. Make sure all your image and file paths in the domain2 folder do not go out of it. Think of the folder domain2 as the root, so anything referenced outside of it will not load. In other words, make sure if you're loading images from domain2.com/images that it's not referencing domain1.com either by a ../ or /. Hope that makes sense.

The redirection needs to be there to load the domain properly in the address bar. The subdomain is virtual, so when you create an addon domain, it uses a DNS record on the server to load the site properly. I would delete anything in reference to domain2 and start over. All you need to do in the Addon domain section is put in domain2.com, leave the folder default that shows up, and hit add domain. domain2.com should be able to load directly.
User avatar
UNFLUX
Media Director
 
Posts: 243
Joined: Fri Jun 25, 2004 9:19 pm

Sorry if I'm overlooking the obvious

Postby tbowick on Mon Jan 01, 2007 5:17 pm

I apologize for the continued problems with this issue.

The path in the browser address bar is correct now, showing only the add on domain name. The images will still not load. The paths for the graphics are "image/index_photo1.jpg" relative to the document.
That should not be accessing anything outside the add on domain folder. In the browser window, the image properties are listed as "http://www.overfloworganic.com/images/logo_frame_03.jpg" but I still just get the broken link symbol. But if I rightclick and go to "view image" it opens a page with the image.

If I set up domain redirection then the images load fine, but the address bar shows http://domain1.com/subdomainfolder instead of http://domain2.com

Any ideas? Could it be something with hotlink protection? I have that disabled.

Thank you for your help.
Patrick Bowick
tbowick
Registered User
 
Posts: 24
Joined: Tue Jul 27, 2004 10:26 pm

Postby UNFLUX on Wed Jan 03, 2007 4:11 pm

.htaccess and hotlink protection was my next thing to suggest. are you positive you don't have it enabled via cpanel?
User avatar
UNFLUX
Media Director
 
Posts: 243
Joined: Fri Jun 25, 2004 9:19 pm

Postby tbowick on Tue Jan 09, 2007 12:20 pm

Hotlink protection is definitely disabled from cpanel. It says "disabled" in red letters.

htaccess for Public_html is as follows:
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.row15.com
AuthUserFile /home2/tbowick/public_html/_vti_pvt/service.pwd
AuthGroupFile /home2/tbowick/public_html/_vti_pvt/service.grp


SetEnvIfNoCase Referer "^http://www.row15.com" locally_linked=1
SetEnvIfNoCase Referer "^http://row15.com" locally_linked=1
SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(jpg|jpeg|gif|png|bmp?g)$">
Order Allow,Deny
Allow from env=locally_linked
</FilesMatch>

The htaccess for overfloworganic (add-on domain folder) is as follows:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^overfloworganic.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.overfloworganic.com$
RewriteRule ^(.*)$ http://www.row15.com/overfloworganic [R=301,L]
tbowick
Registered User
 
Posts: 24
Joined: Tue Jul 27, 2004 10:26 pm

Postby Bigwebmaster on Wed Jan 10, 2007 4:27 pm

You may have hotlink protection disabled via cpanel, but in your .htaccess code you are in fact using hotlink protection. This code is what does it:

SetEnvIfNoCase Referer "^http://www.row15.com" locally_linked=1
SetEnvIfNoCase Referer "^http://row15.com" locally_linked=1
SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(jpg|jpeg|gif|png|bmp?g)$">
Order Allow,Deny
Allow from env=locally_linked
</FilesMatch>


You need to make sure you add all domains or subdomains you want permitted to load any images. Right now you have www.row15.com and row15.com permitted to load images from that site. If you want any other subdomains or domains to have permission to load images you need to add another line there with that info.
UNFLUX.NET SUPPORT
User avatar
Bigwebmaster
Technical Director
 
Posts: 109
Joined: Sun Jun 27, 2004 10:54 pm

Postby UNFLUX on Wed Jan 10, 2007 4:30 pm

Patrick, please check your Private Messages in regards to a separate matter. Thanks.
User avatar
UNFLUX
Media Director
 
Posts: 243
Joined: Fri Jun 25, 2004 9:19 pm

Postby tbowick on Tue Feb 06, 2007 12:55 pm

Your advice on the htaccess file seems to have fixed it. I tried to actually add the domain2.com to the hotlink protection page but could not find a way to do that. Is there a way to do that other than manual edit on the htaccess file?

Thank you for your help in this matter.
Regarding the private message, everything should be resolved. Please alert me if this is not the case. Thank you again,

Patrick Bowick
tbowick
Registered User
 
Posts: 24
Joined: Tue Jul 27, 2004 10:26 pm

Postby UNFLUX on Wed Feb 07, 2007 9:49 pm

Thanks Patrick, all is well. :)
User avatar
UNFLUX
Media Director
 
Posts: 243
Joined: Fri Jun 25, 2004 9:19 pm


Return to General Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron