WordPress redirection: complete guide

If you redesigned the WordPress website or modified its permanent link structure, then your you Many URLs are likely to have been changed. This is a problem for search engines and users.

Fortunately, WordPress redirected to provide a simple solution. When you use the redirect, your visitors will not be negatively affected, and you will be able to keep the search engine ranking unchanged.

On this page, we will discuss what WordPress redirects and how to achieve them. Let’s sneak in!

Directory
1.

What is the page redirection?

2.

When and why are you redo the page?

2.1.

Why do you want to implement the redo?

Reset the direction of the direction 4.

How about how about Use the .htaccess to create 301 redirection

4.1 in WordPress.

Step 1: Verify your web host .htaccess editing rules

4.2. Step 2: Back up your website and Your .htaccess file
5.

How to use the WordPress plug -in to redirect the page

6. WordPress redirection to plug -in
6.1. 1. Reset

6.2. .

3. 30 redirection-simple redirection manager

6.4. 4. Yoast search engine optimization
7.

What is the server -side re -direction?

7.1.

How to redirect HTTP to HTTPS

www to non -www to non -www to non -www to redeveloped XTTPS

]
8. How to regulate the domain in WordPress

9.

How to minimize the minimum in WordPress Tacuity direction 10.
Use WP Engine to keep your website run normally
What is page redirection?

Page dependency is a set of rules, telling the browser to forward the visitors from the link they clicks to different pages. When you redirect to the page, your end users have two results. They will see a news that let them know that they are being redirected, or they are just reposted without notification.

If you change the domain, update the permanent link or redesign the website, you need to add heavy weight Direction so that readers and search engines can still access your existing content. You can think about it: when you move to a new home, you must contact the post office and forward your email to your new address. The way to make the same way of working is the same. In addition to forwarding your email, you forward the user to a new webpage.

When and why should you redirect the page? There are many reasons you want to redirect the URL on your website. Some of the most common include:

The specific page is no longer related.

The URL of the page is changing.

You are moving or deleting content.

You are moving the domain from HTTP to HTTPS.

You are using different domains or changing your original domain name

  • You want to redirect the linked link to the old URL
  • In addition, the redirect can help help to help You ensure that if the page is damaged or lost, the user will be sent toOther content on your website will not be interrupted.

Why should you implement it?

Similar to the first -ranking blog, explain each of the above project symbols to understand the reasons you should implement

]

The redirect type

Because there are many ways to use the redirect direction, there are several different types that make sense. Let’s take a look at the most common ways you may need to use.

You can use multiple types of redirects, so it is important to understand the difference between them. Let’s review some of the most basic redirects.

  • 301 permanent redirection. If you want to move or delete the page permanently, this is the redirect you want to use. If you move the website from one URL to another, or switch it to the new custody service, you can use this feature. This will guide visitors to visit the new URL and help you maintain a considerable page ranking. This is the most suitable for SEO redirection for disconnecting links.
  • 302 temporary redirection. 302 redirecting is a temporary redirection, which should be used with caution and test browser compatibility. In essence, this redirection tells users that the files they are looking for exist, but for some reason, it has not been loaded correctly. Then provide users with alternative options. For long -term use, these redirects may bring SEO punishment. However, you may want to use them for temporary environment and other temporary sites.
  • 303 see others. In terms of security, the 303 redirection is very important. It is used to replace the 302 redirection direction when there is a problem. This type of redirection can prevent users from submitting the same information multiple times. Once they submit their information, they will be redirected to different pages. You can also prevent adding bookmarks or refresh sensitive data, such as credit card information. This is to prevent users from errors, such as accidentally purchasing the same products.
  • 307. This redirection is almost the same as the purpose and purpose in terms of functions and purposes. The difference is how it sends and receives information. 307 using only one data exchange is a real temporary redirection. On the other hand, the 303 redirection is used to adopt two methods and provides \”viewing other\” response.
  • 308. and 301 redirection to oneThis is a permanent redirection. Use it when the file position changes. The difference between the two is that 301 can change the super -text transmission protocol (HTTP) method from Post to get, and 308 can only use the post method.
  • 404 No found. This will redirect any damaged or lost link to another page, such as the 404 error page or your website’s homepage. This allows users to continue to browse your website even if you try to access the lost page.
  • HTTP to HTTPS redirect. HTTPS URL is better than HTTP URL in terms of security and SEO. However, to force the HTTPS version of the browser to display the page, you need to set the redirection.

Some of them are more common than other types, but they have their uses. Understanding the execution method of each redirection can help you use the best redirect direction for specific scenarios. However, manual settings may be tricky, which is where the plug -in function is played.

How to use it in WordPress.

htaccess [ 123] WordPress provides multiple page redirecting methods. You can use a plug -in or change site. htaccess file. The method you choose will depend on the type of redirection of the redirect, the setting of the hosting service provider, and the comfort of your core files.

As mentioned earlier, the 301 redirection is used to forward one URL permanently to another URL, which is different from the 302 redirection (temporary). This means that the search engine will use the page of the new position by default and index it appropriately. This type of redirection can prevent your website from losing the search engine ranking. Let us decompose several steps you need to take this method.

Step 1: Verify your web host

.htaccess

Edit Rules

This. HTACCESS file is a configuration file that tells your server how to display a page from WordPress root directory. Change. HTACCESS

, because the rules you may make. If you have a plan in WP EngineWe recommend that you use our redirect tools.

Step 2: Back up your website and your .htaccess File

Create the 301 redirect in

.htaccess . You need to use the file transmission protocol (FTP) client to access the files on the server. We recommend Filezilla. Before starting, you need to ensure that your website is backup. Then, use Filezilla to navigate to the root directory of your website:

your.

htaccess file. You need to create a copy to prevent the original in case you make mistakes and you need to restore the original. Then, at the top of the file, add it:

redirect to 301 /current-page.html http://www.yourSite.com/new-page/ # 123] This redirect Your URL is changed from

http://www.yoursite.com/current-page

to

http://www.yoursite.com/new-page (You need to occupy a place The message is replaced with the information of your website). When adding redirection, remember, in. htaccess

file.

 

How to use the WordPress plug -in to redirect the page

If You are hesitant to disrupt your core website files, and you may need to consider using plug -in to do this. Later, we will introduce a few different plug -in options in detail. However, in order to allow you to quickly understand how to use the plug -in settings, we will use the redirection to the plug -in as an example: Your first step is to install and activate the plug -in in your WordPress dashboard. After completing this operation, you need to click on its basic settings process.

Click these steps, you will be brought to the redirect of the plug -in

option .

In the \”

option

\” page, you can choose between several different functions. Let us first click

ResetLink to to see how to add a new redirection to your website.

Similar to adding a new post, you can click

to add a new on the redirect of the redirect, and then fill in some information about your redirect. This includes your source URL

and

target URL. You can also define how you want to redirect the parameters you set and assign them to any redirect group .

After completing the filling of these fields, you can click to add the discharge ,As shown in FIG. Then you are ready!

WordPress redirection to plug -in As we mentioned, the WordPress plug -in directory provides many plugins for adding redirection to your site. When selecting the plug -in for this purpose, be sure to study each plug -in to ensure that it is well reviewed, widely used, and actively updated. Below, we will recommend some plugins that can help process each redirection to the scene.

1. Reset to

This plug -in is very helpful to beginners and can be used to easily forward any URL. Since we use the redirect direction in the previous example, you already know what the interface is. It is important to know that this plug -in specially focuses on management 301 redirection and tracking 404 errors. In addition, you can use the redirection to create a redirect according to specific conditions, such as the user’s login status or IP address. This is a truly free plug -in without advanced upgrade, so the feature you get is the only feature they provided. However, if you need to manage other types of redirection, you may need to study other options.

2. Security redirect

Security security The redirect plug -in is a very simple and quasi -system method to create orientation. You will access the manager through the

tool

menu in WordPress, and simply provide information about where the rewriting is from and where to go. You can also set the HTTP status code for the redirect type you want to use. Although this plug -in can be used for large -scale redirect direction, you may want to test it before it achieves it across a large number of pages. The comment is very good, but there are signs that it is at the corporate levelIt may be a bit difficult. Having said that, this is a plug -in that is well -supported and often ed, which can help you set up the redirection quickly. 3. 301 redirect-simple redirection manager

301 Redirects-Easy Redirect Manager plug-in is a free option to help you manage 301 and 302 heavy weights. Direction. If you have reorganized the existing website or just started, this may come in handy. In addition, if you have expired content, this can make your users avoid 404 errors.

Another benefit provided by this plug -in is that you can create a custom URL for the redirect of the redirect. You can also choose to redirect the useful statistical information of the redirect vector of the redirect vector used on your website.

4.

YOAST search engine optimization The advanced version of the Yoast SEO plug -in with a redirection manager, It has a lot of useful pages to redo the options. When you delete the post or page, this tool will automatically ask you where to redirect your old link and which one you want to use (temporary or permanent). The unfavorable side is that the cost of YOAST SEO may be a bit high, a website of $ 89 a month. However, the other excellent features of YOAST SEO can make it a valuable investment for many WordPress users.

What is the server -side re -direction?

In some cases, you need to place 301 redirect direction at the server level so that you can enforce the entire website. This technology is most commonly used to redirect the site from HTTP to HTTPS, or from WWW to non -WWW domain.

How to redirect HTTP to HTTPS

123] If you have installed the SSL certificate and successfully migrate your site to its new HTTPS domain, you still need to create a server -side re -direction. First, you need to find and your website .htaccess file. There, add the following code to the top of the page: reWritengine on reWriteCond %{http_host} ^yoursite.com [nc, or]

reWriteCond %{http_host} ^www.yourSite.com [nc]

reWritule. (.*) $ https://www.yoursite.com/ $1 [l, r \u003d 301, nc]

123]

This code changed each URL in your previous domain to a security corresponding item. If you prefer to use a plug -in to perform this operation, we recommend that you use the real simple SSL.
This plug -in will automatically detect the settings of your website, and then configure them to run through HTTPS. As long as you have a valid SSL certificate, it will handle the rest for you.

After installing and activating the plug -in, you will receive a notice asking you to enable SSL. Click the button and log in to your account again. That's it!

www to non -www redirection to To redirect your webpage to the non -WWW URL, you need to change the application of the entire site level. This rewriting can help you avoid duplicate and bad user experience on the page. To redirect www to .htaccess files in the non -www, you need to enter the following line at the top:

EWRITEENGINEN

reWriteBase /

REWRITECOND %{ Http_host} ^www. (.*) $ [Nc]

reWriterule ^(.*) $ Http:/$ 1 [r \u003d 301, l]

ewritengine on

reWriteBase /

reWriteCond %{http_host} ^www. (. (.*) $ [Nc]

reWriterule ^(.*) $ Http: // %1/$ 1 [r \u003d 301, l]

]

If you are looking for a plug -in that can help you do this, we recommend the truly simple SSL again. However, there is also a WP Rocket assistant plugin that can passGitHub is obtained, and the developer community highly recommends the plug -in. By adding the correct code to you, this plug -in allows you to redirect www to non -www, vice versa.

www 到非 www 重定向 How to regulate the domain in WordPress

If you move the WordPress website to a brand new domain, you need to execute the SEO of the Domain to avoid losing content. These descriptions assume that you have backup your site and move it to the new domain.

To execute this redirection, please open your .htaccess

file and add this code to the top:

#Options +FollowSymlinks

ReWritengine on reWriterule ^(.*) $ Http://www.newsite.com/ $1 [R \u003d 301, L]

Use your new field instead of

newsite. com , and then save the file. You can also use any of the above plugins to complete this task, as long as you activate it on the old site.

How to minimize the directional orientation in WordPress

Although the redirection is to have some legal and necessary purposes, it is also a good way to reduce the demand for them as much as possible. way of doing. If the redirection will slow down your page loading time, this is especially true, because most network users want the page to load the page in two seconds or shorter.

If the user encounters the redirect, they may immediately think that they have deviated from the direction and completely leave your website. For this reason, it is best not to link your content to the known redirection, because it may create a frustrating redirection cycle. If you have recently completed the overhaul of the website, you can use the redirect to monitor, record and repair the redirect error that may lead to the problem.

Use WP Engine to keep your website run normally

If you configure the configuration on the WordPress website to redirect any help, please contact us at any time. WP Engine provides top resources for developers to help you create incredible digital experiences for your customers. We also have multiple developers resources, and provide plans that are suitable for various needs

Author:

Leave a Reply

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