How to code a relative link for a subdomain direct

My main domain is:

my subdomain is:

Now, I have an index.html page located at both of those links above.

I am coding my index page on the main page: and want to put in a relative link to

How would I code this?

Would it be:


Nope. While that might seem reasonable, it won’t work, as the subdomain is a different domain altogether, and “relative” links will only work within the same webspace.

I do not know of a way to make a “relative” link between domains, short of manipulating apache re-write rules via an .htaccess file, and that is not for the faint of heart.

Try to think of it this way: How would you make a “relative” link from one of your pages to Answer: You can’t.

Just because both domains are under “”, doesn’t mean they are not seperate “webspaces”.

Does that make any sense?

yes… that makes perfect sense! Thank you!