BE default.aspx is taking over my root defult.aspx

Sep 23, 2011 at 5:53 PM

I am trying to modify BE 2.5 to have "/Blog" directoriy to be the blog content directory and then use the modified project as a template for future websites . I have created a "/Blog" directory and I have moved most of the files from the root directory to the "/Blog" directory and I have the following file structure:

I have also changed the BlogEngine.VirualPath in the web.config to "~/Blog/" and I did edit some hardcoded paths in the places (ie admin pages, user controls .. etc)

Now the problem is that the default.aspx page in my root directory, for some reason, does not show up. Whenever I brows to http://localhost:57041/BlogEngine.Web/ or http://localhost:57041/BlogEngine.Web/Blog then in both cases the default.aspx of the /Blog directory will be shown and the standard BE theme will appear with all of the initial blog content. This is expected in the case of http://localhost:57041/BlogEngine.Web/Blog but in the case of http://localhost:57041/BlogEngine.Web/ then the other default.aspx, which is in my root directory, is the one that should be displayed. Even if I brows to http://localhost:57041/BlogEngine.Web/Default.aspx the resulting content is the same as http://localhost:57041/BlogEngine.Web/Blog or http://localhost:57041/BlogEngine.Web/Blog/default.aspx

Any ideas on how to fix this problem?

Sep 24, 2011 at 8:24 AM

One way to approach this is to create Blog alias in IIS which is nested in BlogEngine.Web. If you'd like to try this root, then VirtualPath should be set back to default value.

Oct 3, 2011 at 10:13 PM

Has anyone found a fix for this yet?  I found it incredibly annoying that (like the original poster) I had to rename all of the admin pages and reroot several other hardcoded things to work with the subdirectory, especially when we're specifying where the blog is installed.  I really need a fix for this ASAP.


Oct 14, 2011 at 7:47 AM

I also faced the same issue while integrating BE 2.5 with my existing website. I could not get an answer and hence decided to use BE 2.0 instead.

It works fine as a blog in subfolder,

Oct 26, 2011 at 11:39 PM

Take a look at this post this might help you.

Integrate BE 2.5 with existing website does not work

Make sure to download the checker and upload to your directory that has in it.

Have a Good Day,

Brian Davis


Java Blog