Map old website URLs to new case Insensitive

Written by James McDonald

September 10, 2015

Instead of just using RedirectPermanent in htaccess try:

RedirectMatch 301 (?i)/blog/my-really-cool-blog-post /about-us/blog/my-really-cool-blog-post

So if your old web server had capitalised URLs e.g. it will still redirect properly.

So to see if you have this problem look in your apache access.log file and look for 404s. This will give you a list of all incoming request that aren’t being found.


cat /var/log/apache2/access.log | grep -E '\s404\s'


Submit a Comment

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

You May Also Like…

Toggen builds a new website

So I have built and hosted a new website for Roger Clark Pest Management they are a family owned and operated Pest...


Just downloaded WizTree (not a sponsor) from It seems to do what it says on the tin which is...

Scam call from “Telstra”

Just had a call from a man with a sub-continental accent from caller ID 0734946596 Told me there was problem with my...