About UsServicesSupportOrder OnlineContact Us

Client Login

How-to video

Our how-to videos make setting up your site easy.

feedback

We want to hear from you!
Your feedback tells us what we're doing right and how we can provide even better service to you.
If I go you subdomain.domain.com some of my links do not work but if I go to domain.com/subdomain they all work what's wrong?
 
When you use a subdomain the document root is public_html/subdomain. When you go to yourdomain.com the document root is public_html.
 
So say you have a index.html in public_html/subdomain with a link /page.html or ../page.html. If you go to subdomain.yourdomain.com it's going to look for page.html in the public_html/subdomain dir. But if you go to yourdomain.com/subdomain and click on the same link it will look for page.html in your public_html dir. Because when you go to yourdomain.com the document root is public_html.
 
So when using a subdomain if you want to access something that is not in the subdomain's dir you need to use a full path "http://yourdomain.com/page.html".
Related Topics
What is the path to my subdomains cgi-bin?

How do I setup my FTP for a subdomain?

How do I add a subdomain?

What is a subdomain?

Additional Information
Article ID: 212
Author: Ez Web Hosting
Created On: 15 Aug 2003
Views: 3140

Print Article
 
EZ Web Hosting - Advanced hosting made simple Home Site Map