answersLogoWhite

0

There are various redirects. The most common and best one to use is a 301 redirect.

You can create one using a variety of languages.

PHP

<?

Header( "HTTP/1.1 301 Moved Permanently" );

Header( "Location: http://www.new-url.com" );

?>

JAVA

<%

response.setStatus(301);

response.setHeader( "Location", "http://www.new-url.com/" );

response.setHeader( "Connection", "close" );

%>

ASP

<%@ Language=VBScript %>

<%

Response.Status="301 Moved Permanently"

Response.AddHeader "Location","http://www.new-url.com/"

%>

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>

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How do you link a MySpace page to another MySpace page automatically?

simply copy and paste the URL at the top.


What is difference between requestprocessor and request dispatcher?

Request processor is a class which is responsible for handling request and response it is provided by struts framework if we want to customize our controller we can make in this class. Request Dispatcher is an interface which supports for dispatching request from one page to another page in a application(page may be a servlet file,JSP


How does internet works?

Internet (HTTP)A page request from your IP is sent down your phone wire. It passes data to the Exchange, where your ISP finds the nameserver using a DNS, and redirects your request to the server. The server sends back a 200 OK header if the page was sent back correctly, which is displayed as a web page


What is a role of a client?

What is the need of a USER in Internet.. :)Actually "Client" can be term used for a "user".i.e. A client is an application or system that accesses a service made available by a server.Client sends request to the server for its further access.Server responses to the client request.Client is your browser. It sends a URL as request to the Server.Sever responses to the client request. so that the corresponding page is displayed in your browser. This is the process of Client and Server communication.


Hot to use hughes satellite internet?

Hughes satellite internet is easy to use. The company will install it for you. Your computer handles the rest. The computer sends a request to a Hughes satellite and the satellite sends a signal back to the computer and the web page is displayed instantly.


How can you make a Bot or a program that can take a keyword from facebook and post it automatically to a chatbox on your blogspot page links here alturlDOTcomSLASH5nfpb alturlDOTcomSLASHtm8n9?

To make a Bot or a program that can take a keyword from Facebook and post it automatically to a chatbox on your BlogSpot page you will need to use coding software. You can also request a widget that you can use.


How do you request that WikiAnswers sends updates to your email address about recently asked questions?

You can change your email settings in the "My settings" page. You can find that by clicking the link in the blue toolbar to the left of the screen.


How a browser fetch a web page?

# A browser fetches a Web page from a server by a request. # All the computers use a communication standard called HTTP # A request is a standard HTTP request containing a page address # A page address looks like: http://www.ltbbd.com/page.htm Note: Here ltbbd is an example.


In Word which of the following is inserted automatically Hard page break Section break Soft page break Page footer?

A soft page break is automatically inserted.


Is a manual page break also known as a soft page break?

No, actually a soft page break is when the word processing program automatically separates the pages for you (in other words, you are out of room on the previous page, and it automatically continues on to the next). When you manually insert a page break, this is called a hard page break.


How do you Retrieve data from drop down box in one servlet and pass to another servlet?

The data that is present in a web page is available in the Form object of the page which can be accessed from the HTTP Request. If the request object gets passed from one servlet to another the data also would get passed.


Why aren't your webpages on the web?

Because the web is the connections that allow web pages to be sent from one computer to another, it describes the process, not the item iteslf. Web pages are stored on remote computers, you use your computer to send a request for a page over the web to the remote computer, the server. The server then sends this page once again, over the web to your computer.