How to redirect with ASP classic

I want to redirect from one URL to another:

http://shemale.deals.com/

http://male.deals.com/

How can I achieve this by changing the URL to the new URL in the browser and linking to the page, directly to the new URL, without going to the old URL and updating?

I looked at some scripts on the Internet and they did not work, I also do not know ASP classic. So I try my best to do this redirection work.

+5
source share
2 answers
<%
    Response.Redirect "http://www.sitename.com"
%>

And the plus for the "all" request browser URLs:

<%
    Response.Redirect "http://www.sitename.com/?" & Request.QueryString
%>
+13
source

On the default.asp page, which is listed as the start page in IIS, comment out all the HTML code and put this classic ASP code:

<%
Response.Redirect "http://male.deals.com/"
%>

, :

<% response.redirect("http://male.deals.com/newpage.asp" & "?id=" & request.querystring("id")) %> 

- ISAPI, Helicon ISAPI.

+2

All Articles