We changed our website from .php to .net, and now several search engines still have the .php files (which are now broken links) in their db.
What I want to do is create those .php files that contain .Net code and execute them.
I have written:
I've also set up a PHP file type for the server, and set the execution path
(Website/properties/Home Directory/Configuration/Mappings)
Using the old ASP dll, "C:\WINDOWS\system32\inetsrv\asp.dll", the redirect works fine using Response.Redirect... in the code.
However, when using
c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll
The browser displays the code without executing it.
Can someone lend a hand?
Thank you.
What I want to do is create those .php files that contain .Net code and execute them.
I have written:
Code:
<%@ Language=VBScript %>
<%
'
' index2.php
'
Response.Status="301 Moved Permanently"
Response.AddHeader("Location", "[URL unfurl="true"]http://www.mysite.com/index.aspx")[/URL]
%>
I've also set up a PHP file type for the server, and set the execution path
(Website/properties/Home Directory/Configuration/Mappings)
Using the old ASP dll, "C:\WINDOWS\system32\inetsrv\asp.dll", the redirect works fine using Response.Redirect... in the code.
However, when using
c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll
The browser displays the code without executing it.
Can someone lend a hand?
Thank you.