visualazza Posted August 15, 2010 Share Posted August 15, 2010 I was wondering of it was possible to have a file say style.css in the root folder of a site like www.example.com/style.css and then get a subdomain called www.sub.example.com which points to www.example.com/subarea to get that file without the use of absolute paths? Sorry if its not clear. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 15, 2010 Share Posted August 15, 2010 The file style.css will be requested by your HTML (or specifically your web browser), not PHP. So you'd use a url <link rel="stylesheet" type="text/css" href="http://example.com/style.css" /> No matter what the url is it will request for correct file each time. Quote Link to comment Share on other sites More sharing options...
visualazza Posted August 15, 2010 Author Share Posted August 15, 2010 yeah, i thought i would have to use an absolute path. Thanks anyway Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.