Wednesday, November 18, 2020

How to Create a URL Redirect

What is URL Redirection?

URL redirection is a Web technique for making a web page available under more than one URL address. When a web browser attempts to open a URL that has been redirected, a page with a different URL is opened. It helps website owners from losing the value of any links you’ve built to that page—which is important for search engine optimization. 


Types of URL Redirection

1. 301 Redirection:  301 redirect is a permanent redirect. 

2. 302 Redirection:  302 redirect is a temporary redirect.

3. Meta Refresh: Meta Refresh code instructs a Web browser to automatically refresh the current web page.


How to Set Up a Redirect

1. Redirect from .htaccess file : Refer below links for .htaccess redirection

2. Redirect by meta refresh code: Use  following code in head section of specific page redirect current page to other page
<meta http-equiv="refresh" content="0;url=http://yourdesiredpage.com/" />
Refer the following URL W3C


No comments:

Post a Comment