Perhaps this thread does not bellong in the PHP forum, but since I'm working with PHP/Apache I'll try here first.
I have setup subdomains on my site and realized that links are not relative to the wwwroot, but relative to subdomain root, I was wondering if anyone knows of a workaround (besides using Absolute URLs) perhaps using Mod_Rewrite (Which I don't know much about).
I was thinking if all else fails create a "config" file for all subdomains with wwwroot variable, but seems like too much work to modify all my pages to include this variable. But then again faster then changing it again if I add/change domain names.
Check out HTML's BASE element. http://www.w3schools.com/tags/tag_base.asp. You'll still have to add it to every page, but it's one line in your <HEAD> -- you do not have to modify every link and image.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.