Making a Redirect Work with Capitalization on WPENGINE

A client recently wanted to have a vanity URL redirect created. I had created one like https://limecuda.com/awesome-wordpress-hosting/

However, they wanted to have a URL like https://limecuda.com/Awesome-Wordpress-Hosting/

Here is how we accomplished accommodating uppercase letters using a bit of RegEx magic…

Source: ^/[aA]wesome-[wW]ord[pP]ress-[hH]osting/?$
Destination: https://limecuda.com/services/hosting/

Boom. That is how you can accommodate a client who may use capitalization within a vanity url/redirect.

Exit mobile version