By Zieliński Jerzy

301 Redirects plugin – how to use it?

I recently wrote about SEO for WordPress using popular plugins such as.
RankMath
i
Yoast
. If you’re already creating friendly URLs for existing subpages, however, it’s worth keeping redirects in mind so users (and Google’s robots) don’t get lost on your site. See the easiest way to do 301 redirects.

Why do you need 301 redirects?

A 301 redirect allows you to move the content of a page to another URL without losing its visibility. When you type www.zielinskijerzy.com/ into your browser, you still end up at zielinskijerzy.com. This way, Google does not treat the two URLs as separate pages and does not detect duplicate content. The same is true for SEO, when you change the URL of a subpage to one that is more friendly to crawlers and users. 301 redirects make the old page address direct to the new one, and the page content is moved. They also work well, for example, when one of your products is no longer available in your offer, and customers who search for it end up on a 404 error page. It is better to redirect them to a category or related product.

How to do a 301 redirect on WordPress?

Redirection is easy because in WordPress you only need the 301 Redirection plugin to do it. We install and run the plug-in like any other (I described it, for example, in an article on
Yoast SEO
). Then, all you have to do is enter the old and new URLs:

Plugin alternative: 301 .htaccess redirect

The more advanced can use another way, and that is to use the .htaccess file, which you will find in the directory of the website (that is, in the same place where the index.php or index file). Then you need to add such code to the file (with the old and new URLs completed):

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www.?)old-URL [NC]

RewriteRule (.*)http://nowy-URL.pl/$1 [R=301,L]

Does positioning seem difficult and time-consuming to you? Contact me – I will teach you how to position your site on WordPress in the easiest way.

Dodaj komentarz.