What is a 307 redirect and what is it used for? –

If you are starting in the SEO world, it is possible that you have heard the importance that redirections have when it comes to achieving a good web positioning for your online project. Depending on the actions we seek to carry out, there will be different types of redirectswhich will help us ensure that these changes do not harm our SEO.

In this post, we want to focus on 307 redirects. We will tell you what exactly one refers to. 307 redirectwhat they are used for, what is their main difference from other types of redirects and how to easily create them for your website.

Read on for everything you need to know about 307 redirects!

What is a 307 redirect?

The 307 redirect is used when the resource on which the request has been made, performs a temporary redirect to another resource. This type of redirection indicates that the content being requested is still on our server, but is being accessed from a different location temporarily. Is a server side redirect which is used to indicate that this resource has been temporarily moved.

In this type of redirect, the source URL does not exist temporarily, but you can find it in the destination URL. After a while, Google may consider it permanent. Namely, when we implement a 307 redirectwe take both users and Google bots from one source URL to another destination URL, which we are interested in seeing temporarily.

When to use a 307 redirect?

At this point, you may be wondering under what circumstances the use of a 307 redirect on your website. Its use is not really very common, and usually occurs for some specific assumptions.

  1. If we have true maintenance content or one of our products are out of stock, we may perform a temporary redirection until we can complete the modifications or restore stock.
  2. When the browser knows that a website is using HSTS, it will force you to access it from the HTTPS version through an internal redirect. Browsers will use a 307 redirect, to redirect an HTTP page to an HTTPS page.
  3. This type of redirection is usually used so that you can ensure that users of your website do not refresh the page when it contains sensitive data, such as the numbers of a credit card during payment in an ecommerce.
See also  Google Ads Unknown Conversion: Store Visit -

Differences between a 302 and 307 redirect

Although both refer to temporary redirectswe must highlight some points in which they differ from the 307. The main difference is the character ‘found‘ from the original URL in the 302 redirect, since in the case of the 307 redirect the original URL is not found, so we redirect the user or the search engines to a new resource.

in version HTTP Protocol 1.0, the 302 redirect, was referring to those resources that would have been temporarily moved. With the arrival of HTTP version 1.1307 redirects have taken the place previously occupied by 302s as temporary redirects.

How to create a 307 redirect?

Now that you know how these types of redirects can help you, we will tell you what methods you have to carry it out. There is no single way to carry it out, so you can choose the option that best suits your needs.

307 redirects with the .htaccess file

Through a FTP access, we must reach the root file of our web page. There we will find the .htaccess file. Sometimes this file remains hidden, so you may need to check your FTP client settings if it is not visible.

You can use any code editing program or a plain text editor, such as Windows Notepad. Once you have accessed it, we recommend you insert this code at the end of said file:

Redirect 307 /page1/ https://mydomain.com/page2/

In this way, you will be temporarily redirecting both users and Google bots, from https://mydomain.com/page1/ a https://mydomain.com/page2/. After you have made the changes, be sure to save them so that your redirection is operational. Once you decide to remove the temporary redirect, it will be as simple as removing that line of code.

See also  What is Domain Authority (DA) and how is it measured -

Using a WordPress plugin

If your page website is hosted on a WordPressit will be as simple as using one of the plugins that this CMS makes available to us.

  1. Install the plugin «Redirection«, From the plugins section of your WordPress: Add new > locate the “Redirection” plugin in the search engine > Install > Activate.
  2. head to the plugin settings to create the redirection: Tools > Redirection > Add new
  3. In the dropdown, indicate the option “307 – Temporary redirect” as we indicate in the image.
  4. Add the source url from a relative URL «/page 1/”, as well as the destination url complete, where you want to redirect your content «https://midomino.com/pagina2/».
  5. When you have configured these parameters, click on “Add redirection” and you will have set up your 307 redirect.

It is essential to carry out an exhaustive review of the URLs that we have on our website. To do this, we must know in what cases we must implement each of them, so that our position is not harmed. In We work on different aspects of SEO when it comes to positioning our projects in organic searches. Redirections are undoubtedly a fundamental pillar in any SEO strategy.

Loading Facebook Comments ...
Loading Disqus Comments ...