I have an installation of 05.01.04 located on a server across my network. I connect to it with my VS2008 (on my workstation) and develop and debug against it. The development and debugging is done with the IIS7 built into VS. While running under the VS version of IIS7 I edit the content of an HTML module and add an image. Using the FCK Rich Text Editor It enters the following URI:
<img width="883" height="321" src="/website/Portals/0/images/main_img.jpg" alt="" />
When I run it on the local host (IIS7) it comes up just fine. The property of the image in my browser is:
http://localhost:58320/website/Portals/0/images/main_img.jpg
But I also have this website as a virtual directory running in the IIS6 on another machine. If I call it up through IIS6 the image is broken and the property in the browser is:
http://www.XXXXX.com/website/Portals/0/images/main_img.jpg
If I remove the "website" it works fine on IIS, like this:
http://www.XXXXX.com/Portals/0/images/main_img.jpg
How can I get this resolved so it will work in both environments? I don't want to have to develop and debug on my workstation (against IIS7) and then have to rewrite all of the URIs to work on IIS6. I know I can attach to the instance of IIS6 and use that in my debugging but that's a big pain having to continually attach each time.
One last question that is only partially related - I hate that in the FCK editor everytime you drop text or an image in it automatically wraps it in <p> tags. I then have to go back in with the basic editor and remove them. Is there a way to keep FCK from doing this?
All help is appreciated - thanks,
BK