当前位置: 动力学知识库 > 问答 > 编程问答 >

asp.net - How To Redirect aspx files that are "Not Found"

问题描述:

I recently migrated my site from a aspx site to wordpress. The wp site is now hosted on rackspace cloud.

When I go to index.aspx I get the following message:

Server Error in '/' Application.

The resource cannot be found.

Description: HTTP 404. etc.

Previous times I have done a migration like this I uploaded a file index.aspx with a redirection inside and that worked well, but now it doesn't seem to find the file at all.

Nor did a redirect from the htaccess, nor the redirection plugin. I just get that same message.

Any ideas?

网友答案:

I believe Cloud Sites supports the ability to serve both PHP and ASP content from the same "server". I suspect you have "Windows Technology" enabled on your account which is attempting to serve the index.aspx file and ignoring the .htaccess file. The following articles should help:

Cloud Sites KB - How can I redirect from ASP/.NET to PHP?

Cloud Sites KB - How do I enable a secondary technology?

网友答案:

Your server may not be configured to treat *.aspx as html files.

分享给朋友:
您可能感兴趣的文章:
随机阅读: