Recommended approach for large number of redirects in htaccess

by Marston Gould   Last Updated June 30, 2020 05:01 AM

I have two websites, each was set up by separate companies. Call the first domain, domainA.com and the second domainB.com domainA.com has urls of the format domainA.com/state/county-name/city domainB.com has urls of the format domainB.com/state-abbr/city

There are ~500 locations.

I could set these up in CMS using regex rules, but I'm curious whether there is a way to set this up in the htaccess and if so, what is a good resource to determine how to do this appropriately.



Related Questions





utilize htaccess to rewrite all indexes

Updated July 07, 2017 18:01 PM

Sending login credentials for .htaccess

Updated June 27, 2018 16:01 PM