Hi There,
This has been a problem since I have started using DNN and I would love to know if there is a solution to this please?
At the moment, when I create a site using DNN, I point my images and hyperlink paths to http://localhost/mysite
The problem with this is that when I take it online I need to change all of the links in my site to then point to the live site.
As an example, the application sees http://localhost as the root path, so I cannot use /images/mypic.jpg as a relative path because the actual application begins at http://localhost/mysite
I posted this question on DNN creative and got a response from someone who was helping me but he is offline now and I need help urgently with this.
He said that in the IIS, I need to set my site's physical path to http://localhost/mysite.
In IIS I followed this route.
- Open IIS
- Right click on Default Web Site
- Go to Properties
- The Default Web Site Properties window opens
- VClick on the Home Directory Tab
- Change the Local Path to C:\Inetpub\wwwroot\mysite
I have done all this but I am still running into problems when I reference the root of the site like this /home.aspx or /products/stapler.aspx
If someone can help with this I would greatly appreciate it!
Thanks,
Sky