rubing Posted June 19, 2008 Share Posted June 19, 2008 I just set up my first ever subdomain. And I notice that it does not allow for realative paths. Is that right? for example, if before i had a line of html like this: <style type="text/css" src ="/css/stylesheet1" /> It now requires the full path <style type="text/css" src="http://www.example.com/css/stylesheet1" /> Link to comment https://forums.phpfreaks.com/topic/110995-relative-paths-in-subdomain/ Share on other sites More sharing options...
rhodesa Posted June 19, 2008 Share Posted June 19, 2008 correct, if you want it to pull the CSS from the main domain, and not the subdomain. using a relative path will pull from the subdomain obviously. you can also use a BASE tag to default all links back to you regular domain (but not sure why you would): http://www.w3schools.com/TAGS/tag_base.asp Link to comment https://forums.phpfreaks.com/topic/110995-relative-paths-in-subdomain/#findComment-569549 Share on other sites More sharing options...
rubing Posted June 19, 2008 Author Share Posted June 19, 2008 thanks rhodesa! I guess I wasn't thinking about it in terms of a seperate domain at first. now it makes sense! Link to comment https://forums.phpfreaks.com/topic/110995-relative-paths-in-subdomain/#findComment-569566 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.