What’s the best way to fix a 404 error on my website due to mixed case url?

[ad_1]

What’s the best way to fix a 404 error on my wordpress website due to mixed case url? For example, I briefly had a url for our “About Us” page as ../AboutUs. But updated the page and url to ../aboutus. Now I am seeing 404 Page Not Found errors on my website reports for the old url.

Someone said that I should edit the .htaccess file and add this to the end of the file:

RewriteEngine On
RewriteBase /
RewriteMap lc int:tolower
RewriteRule \^(.\*)$ ${lc:$1} \[R=301,L\]

But I don’t know what that will do.

What do y’all think? What is the best way to fix my 404 error?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer