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.a开发者_StackOverflowspx 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.
精彩评论