Redirections in HTTP – URL redirection – URL Forwarding

URL redirection, also known as URL forwarding, is a technique to give more than one URL address to a page, a form, or a whole Web site/application. There  are various way to fix redirection of web page

Apache Redirect

<VirtualHost *:443>
ServerName example.com
Redirect / https://www.example.com
</VirtualHost>

HTML redirections

<head>
<meta http-equiv=”Refresh” content=”0; URL=https://example.com/”>
</head>

JavaScript redirections

window.location = “https://example.com/”;

 

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *