views:

66

answers:

2

I am hosting BlogEngine.net on Godaddy 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 blogengine.net at the root of my site) thanks

A: 

I did this once before. Like you, I had a main site with the blog link going to a sub-domain. Unlike you, I did not place it in a sub-directory. I created it as a standalone site with a sub-domain URL like yours. I styled both sites the same and navigation between the two appeared seamless to the user. Try separating them?

Even if you ended up paying a few extra bucks a month for the hosting, it would mean you would not have to go through all the pain of the hacks every time you upgraded your version of BE :-)

http://stackoverflow.com/questions/1889847/integrating-my-website-with-blogengine-net

http://www.ajaymatharu.com/integrating-blogengine-into-an-existing-site/

http://blogengine.codeplex.com/Thread/View.aspx?ThreadId=215676

IrishChieftain
I am working within the limitations of GoDaddy right now. They allow multiple sub-domains but I have to place within a sub directory.
David
BE is actually a "Web Site" project (the deployable part) and I'm not sure how nice that would play in another solution. I would seriously consider setting it up separately. If you still want to try and hack it, check the second link I added to the answer :-)
IrishChieftain
A: 

You can assign a domain or a subdomain as the primary domain on most hosting plans. Did you add a new CNAME or A record?

Have you explored 301 redirects? If you are working with IIS 7, it would likely be web.config files to customize for redirecting.

your_goddess_says