I am converting a Frankenstein monster of a website into a WordPress. The first challenge I am facing is to keep our old URLs for Google. this site has several .PHP pages and several HTML pages.
Our Google ranking is high in several key search terms. So it is important to me that page addresses remain the same. So far I cannot find a plugin which would allow my WordPress site to have both .HTML and .PHP permalinks.
I am familiar with mod_rewrite() and have used it before, but when I inserted a rewrite rule into the existing WordPress .htacces file, it broke the routing altogether.
I would greatly appreciate any input from your WordPress gurus 🙂
You need to do
301 redirectand here’s an example.htaccess.