I have an "ecommerce" shared hosting account and my site is setup for Windows.
My setup has folders something like this:
My primary website is at the root and has its own domain ie. www.primarydomain.com
I have another domain that I want to use to take users directly to the part of the site they need and it is directed to wwwroot/folder1 where there is a default.htm that is displayed. Let's call that domain www.seconddomain.com At the moment, none of the images appear and the css isn't being used. The links are in the form "../css/standard.css" or "../images/image1.jpg".
I assume that they don't work since the www.seconddomain.com points directly to the folder & I assume is unable to "see" the folders that are at the same hierarchy level.
Is there any way around this? I really don't want to duplicate CSS files and image files under folder1 and I'm not too thrilled with the idea of editing all the links in the files under folder1 to hardcode www.primarydomain.com into each and every one. I created & maintain the site using ExpressionWeb and much of this code is in my Dynamic Web Template - to change just this section of the site would require using a separate template for that area and negates a lot of the advantages of using it in the first place (primarily only having to make changes to 1 file to update the whole site.) There is also the problem that most of the pages www.seconddomain.com/default.htm uses are ALSO used by the main site at www.primarydomain.com, so whatever solution I come up with can't break the pages when reached that way.
Is it time for me to delve into the mysteries of web.config? Is it possible to use that to redirect any calls to seconddomain.com for *.css or *.jpg to be redirected to the correct location? I'll take the time to research and learn about it if it will solve the problem, but I sure don't want to make that effort just to find out it won't do what I need. Any other ideas out there?