Search code examples
asp-classichttp-redirect

How to redirect with ASP classic


I want to redirect from one URL to another:

http://female.deals.com/

http://male.deals.com/

How can I achieve that with the URL changing to the new URL in the browser and with a page going straight to the new URL without going to the old URL and making a refresh?

I looked through some scripts on the Internet and they didn’t work, I also don’t know ASP classic. So I am struggling to make that redirect work.


Solution

  • <%
        Response.Redirect "http://www.sitename.com"
    %>
    

    And plus for "all" the querystrings browser url has:

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