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.

Thanks in advance.

13 Years
Discussion Span
Last Post by senexom

Thanks Troy, I'll give it a shot, seems like it's widely supported since HTML 3.2, wierd that I've never used it or even heard of it :o

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.