This is not really a WordPress problem. The used of a relative directory is a standard thing. You should be able to just specify a relative directory and everything would work. When I install WordPress, it asks for a directory or yu can just put it in the root.
OK, now the problem. I changed the name of my web site and had to set name servers for the new domain. Well, name servers are often very slow to propagate. I know that. Something went wrong.
Rather than pay for a new webspace, I wanted to just put the new domain on the same web server. I did that before and it was fine. But my news domain name is not one of the common type.
Here is an example, but not really my real domain names. Let's say I have two domain names.
olddog.com <- a popular type
newdog.us < - a less used type
So the web space is for the first item, the old popular name.
The second name, the less used kind, shall be a sub domain on the old site.
This is done with a form of redirection. Like this
www.newdog.us points to
www.newdog.olddog.comOK, but the real locationsare:
/public_html is the directory for the old name .
/public_html/newdog.us is directory for the new name
Of course when you get to either site the user never sees public_html in the address bar. It looks like both sites are independent.
However, you could do this:
www.newdog.us
www.newdog.olddog.com
www.olddog.com/newdog.usAll three would bring up the same i
ndex.htm automagically. The same file, not three copies of the same file. There is only one i
ndex.htm for newdog,.us on the server.
Now when I install word press , it has to go on
newdog.olddog.com
It twill mess upon
newdog.us
But anybody who goes to the site must use
newdog.us
Which becomes redirected to
newdog.olddog.com
It took me days to get that right.
They do not warn you.
If you have an explanation,I might listen. Or maybe not.