Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 607
Dmitry Makovetskiyd Avatar asked Jul 08 '12 05:07

Dmitry Makovetskiyd


People also ask

How to redirect ASP page to another page?

this is the correct command - after you make asp page runs on your site ! Response.Redirect ("Account/login.aspx"); will redirect to new page so check you give proper path to redirect or not.

What is redirecttoaction method in ASP NET Core?

The RedirectToAction method is used to redirect a request in ASP.NET Core from one URL to another. This can be used to redirect based on some condition. The method is part of the Controllerbase class so it’s directly available for use in the controller class.

How to improve article save article like article ASP Redirect Method?

JavaScript Number toString() Method Improve Article Save Article Like Article ASP Redirect Method Last Updated :19 Aug, 2020 The ASP Redirect Methodis used to redirect the client to a different URL. It is a predefined method of the Response Object. Syntax: Response.Redirect URL

What is localredirect method in ASP NET Core?

The LocalRedirect method is similar to the Redirect method in that it is used to redirect a request in ASP.NET Core from one URL to another. This can be used to redirect based on some condition. The method is part of the Controllerbase class so it’s directly available for use in the controller class.


1 Answers

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

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

<%
    Response.Redirect "http://www.sitename.com/?" & Request.QueryString
%>
like image 87
htbasaran Avatar answered Oct 13 '22 02:10

htbasaran