WordPress .htaccess redirect 301 – Fix broken links

.htaccess redirect 301

If you have some broken links on your website, You can fix them by redirecting them to relevant posts and pages on your blog.

Go to Yoast – Tools – File Editor and in your .htaccess file add the following line just before # End WordPress line.

redirect 301 /broken-link /awesome-relavant-post

Just replace links with your relevant links.

You May Also Like

Leave a Reply

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