Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am hosting ASP.NET on asphostportal.com in a sub-directory configured in iis7 as an application. i.e. http://blog.domain.com The user can also navigate to the blog via http://www.domain.com/blog. This is making things a bit odd as files uploaded get referenced always through http://www.domain.com/blog/images/file.jpg as opposed to http://blog.domain.com/images/file.jpg

How can I configure so that all references are done via http://blog.domain.com/ (I do not want to have to put asp.net at the root of my site) thanks

What I have tried:

configured in iis7 as an application.
Posted
Updated 2-Jun-16 23:17pm
v3

1 solution

You need to add a Virtual Directory to point to the source directory.

Make a directory blog -> images in the main site. Then make that images folder virtual and point that to the blog.domain's images folder.
 
Share this answer
 
Comments
Yukito Fuzhikara 6-Jun-16 1:01am    
thanks I will try it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900