Previously we setup our DNN installation to http://localhost/mywebsite and upload the contents, pictures and etc. Some of the HTML contents's picture is pointing to the resource's relative path (" /mywebsite/Portals/0/images/Pic1.jpg").
When we planned to move it to the live server, IIS 7's Default Web Sites set the path to point at the D:\mywebsite, the content would not displays the pictures correctly due to the virtual folder "mywebsite" is not there anymore.
I tried to create another virtual folder "mywebsite" under it and point it to D:\mywebsite, IIS7 will prompt me the error of "Compilation error" due to that virtual folder consists of the "web.config" file.
My current setup is
- Default Web Sites - D:\mywebsite
- - mywebsite (virtual folder) - D:\mywebsite\Portals
- - - Portals (virtual folder) - D:\mywebsite\Portals
Then the website is running fine. But I believe this is not the right way to configure the mywebsite to point at D:\mywebsite\Portals which acts as dummy folder. Any suggestions to fix this?
Thank you.