Seo Forum

Search Engine Optimization => On Site Optimization => Topic started by: anilkumartgsb on 12-23-2013, 01:45:03

Title: 301 and 302 redirection issues
Post by: anilkumartgsb on 12-23-2013, 01:45:03
Hi..... I want to know the basic issues of these redirection and in which cases we need to use them.
Title: Re: 301 and 302 redirection issues
Post by: TomClarke on 05-05-2016, 23:24:47
Redirection is a way to handle the input/output streams in a computer system. There are two main types of redirection: input redirection and output redirection.

Input redirection allows you to change the source of input for a program. By default, programs read from the keyboard or standard input. However, with input redirection, you can provide a file as the input source instead.

Output redirection, on the other hand, allows you to change where the output of a program goes. By default, the output is displayed on the terminal or standard output. But with output redirection, you can redirect it to a file or another program's input.

Here are a few cases when redirection can be useful:

1. Input Redirection: When you have a large amount of input data stored in a file, you can redirect that file as the input source for a program instead of typing it manually.

2. Output Redirection: If you want to save the output of a program to a file for further analysis or processing, output redirection can be helpful. It allows you to capture the output and store it in a file rather than displaying it on the screen.

3. Piping: Piping is a form of output redirection. It allows you to take the output of one program and use it as the input for another program. This can be useful when you want to chain together several programs to perform complex tasks.

4. Error Redirection: In addition to input and output redirection, you can also redirect error messages produced by a program. This is helpful when you want to separate the standard output from error messages and handle them differently.

5. Logging: Redirection can be used for logging purposes. Instead of displaying output or errors on the screen, you can redirect them to a log file for future reference, debugging, or analysis.

6. Automation: Redirection is often used in automated scripts or batch processes. It allows you to automate tasks that involve reading input from files, executing commands, and saving output to specific locations.

7. Input/Output Testing: Redirection is commonly used in software testing. You can create test cases with predefined input files and compare the output of a program against expected results, all through redirection.

8. Data Processing: Redirection can facilitate data processing tasks. For instance, you can redirect the output of one program to another program that performs further data manipulation or analysis.

9. Remote Execution: Redirection can be useful in remote execution scenarios. It allows you to run commands on a remote server and redirect the output to your local machine for analysis or display.

These are just a few examples of how redirection can be used. It provides flexibility and control over input and output streams, enabling you to manipulate, capture, and redirect data as needed.



A 301 redirect tells the search engine thta the page has moved permanently to the new URL. All three major search engines handle 301 redirects the same, that is to say they ignore the original URL and instead index the destination URL.
A 302 redirect tells the search engine  that the move is only temporary, and you may decide to show content at the original location in the future without a redirect. 302 is treated  as page hijacking technique.
Title: Re: 301 and 302 redirection issues
Post by: RH-Calvin on 05-12-2016, 00:58:03
301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".

A 302 redirect is a temporary redirect. There are very few instances where this type of redirect should be used, but unfortunately it is the easiest to implement. This means that many webmasters unfamiliar with search engine mechanics use the wrong type of redirect.
Title: Re: 301 and 302 redirection issues
Post by: SEO.Ninja on 05-12-2016, 06:18:15
301 Redirect: 301 status code means that a page has permanently moved to new page or location.
302 Redirect: 302 status code means that a page has temporary moved to new page or location.