开发者

Directory redirect

开发者 https://www.devze.com 2022-12-20 10:24 出处:网络
Ok, I don\'t know if this is possible.. Let me explain my situation. I currently have a DotNetNuke framework and I am trying to get off of it. Only way to get approved is to build a new framework tha

Ok, I don't know if this is possible.. Let me explain my situation.

I currently have a DotNetNuke framework and I am trying to get off of it. Only way to get approved is to build a new framework that sits beside the DNN and slowly migrate the functionality out of DNN and onto the new fr开发者_运维百科amework.

I don't want to have two different frameworks sitting on the same instance for maintainability purposes, I envision the DNN framework sitting in one and the new framework sitting in another but still maintaining the URL structure.

For example, www.url.com points to the DNN and if someone tries to resolve a page within a specified directory I want IIS to resolve from the other framework in another instance.

Is this possible?


You can use either IIS or ASP to redirect a webpage.

http://www.webconfs.com/how-to-redirect-a-webpage.php

<script runat="server">
private void Page_Load(object sender, System.EventArgs e) {
  Response.Status = "301 Moved Permanently";
  Response.AddHeader("Location","http://www.new-url.com");
}
</script> 

EDIT: You can also try URL Rewrite

0

精彩评论

暂无评论...
验证码 换一张
取 消