如何重定向“未找到”的 aspx 文件
我最近将我的网站从 aspx 网站迁移到了 wordpress。 wp 网站现在托管在rackspace 云上。
当我转到index.aspx时,我收到以下消息:
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. etc.
以前我已经完成了这样的迁移,我上传了一个文件index.aspx,里面有重定向并且效果很好,但现在似乎找不到该文件全部。
htaccess 或重定向插件也没有重定向。我刚刚收到同样的消息。
有什么想法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信云站点支持从同一“服务器”提供 PHP 和 ASP 内容的能力。我怀疑您的帐户启用了“Windows 技术”,该帐户正在尝试提供 index.aspx 文件并忽略 .htaccess 文件。以下文章应该会有所帮助:
云站点知识库 - 如何从 ASP/.NET 重定向。 NET 到 PHP?
云站点知识库 - 如何操作启用辅助技术?
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?
您的服务器可能未配置为将 *.aspx 视为 html 文件。
Your server may not be configured to treat *.aspx as html files.