遇到问题老重定向URL PHP的新ASP页 [英] Having trouble redirecting old PHP URL to the new ASP page

查看:236
本文介绍了遇到问题老重定向URL PHP的新ASP页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是一个ASP程序员。人们仍然使用链接从当该系统是建立在PHP的时候。

I am not an ASP programmer. People still use a link from a time when this system was built on PHP.

旧网址:www.domain.com/shop/more.php

Old url: www.domain.com/shop/more.php

新网址:www.domain.com/shop/more.asp

New url : www.domain.com/shop/more.asp

现在运行没有安装在PHP在Windows服务器上。如果我创建旧的PHP文件,然后要求用户访问时下载PHP文件。

It now runs on a Windows server that doesn't have PHP installed. If I create the old PHP file then the user is asked to download the .php file when visiting.

我的研究采取了我去学习,我可以通过编辑web.config文件(以root或网页的文件夹中),但我所有的变化情况造成错误或做任何事情解决这个问题。

My research has taken me to learn that I can fix this by editing the web.config file (in either the root or the folder of the page) but all my changes have either caused errors or done nothing.

我也认为只是使默认的404页面重定向到正确的页面有问题,但我的尝试已经找到了相同的结果。

I have also considered just making the default 404 page redirect to the correct page in question but my attempts have found the same result.

有没有人有任何见解?有没有办法找出网站运行的是什么版本的ASP?

Does anyone have any insight? Is there a way to find out what version of ASP the site is running?

推荐答案

您应该能够使用JavaScript重定向如果PHP不工作:

You should be able to redirect with javascript if PHP doesn't work:

<script type="text/javascript">
   window.location = "more.asp";
</script>

这篇关于遇到问题老重定向URL PHP的新ASP页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆