For the site I am running (which is now all html) they have a few old .aspx
pages on there. A crawler has just complained there is a 5XX error on page index.aspx
. There are possibly other external sites that link to this very old page - that is why it still remains.
The client does not want C# anymore on their site. I believe they want to move away from Windows servers in the near future. I want to rewrite this index.aspx
file to redirect (permanently) to the new index.html
.
I do not know enough about ASP.NET to know what to write in this old .aspx
file to redirect it to the new index.html
file.
I do not want any C# code. The client wants to move away from that. The client also wants a file based solution, no IIS.
Can I just write some html in this .aspx
file, eg:
<html>
<head>
<meta http-equiv="refresh" content="0;url=new.aspx" />
</head>
<body>
</body>
</html>
But hasn't W3C deprecated the use of the META element for refreshing or redirecting?
What is the new way of doing this in pure html that can be written in a aspx file without any C# compilation?