I've never done redirects in asp, always used Apache servers. Need to redirect the whole site to the index page of a new site using global.asa, have onyl FTP access, no cpanel. Think it takes 2-3 lines of code, not able to manage. Willing to pay $5.
ASP <%@ Language=VBScript %> <% Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www.new-url.com/" %> Code (markup): ASP.NET <script runat="server"> private void Page_Load(object sender, System.EventArgs e) { Response.Status = "301 Moved Permanently"; Response.AddHeader("Location","http://www.new-url.com"); } </script> Code (markup): If to your requirements, you can paypal me at - Thanks!
Thanks for replying. I tried that but it's not working, I get an error. Here is my global.asa file: <SCRIPT LANGUAGE=VBScript RUNAT=Server> Sub Application_OnStart End Sub Sub Application_OnEnd 'nothing needed here for this example End Sub Sub Session_OnStart Application.lock Application("ActiveUsers") = Application("ActiveUsers") + 1 Application.unlock End Sub Sub Session_OnEnd Application.lock Application("ActiveUsers") = Application("ActiveUsers") - 1 Application.unlock End Sub </SCRIPT> Can I tried your code under "Sub Application_OnStart" both with <& &> and without, but it did not work.