Page 1 of 1

301 in HTACCESS for all Wordpress Blog URLs

Posted: Mon Dec 03, 2018 3:23 am
by simonmlewis
Hi there

We are about to transfer someone's Weebly website to Wordpress, but their Blog is badly written in the URL. Rather than just /news or /blog, it has their company title in it, and it's causing them SEO issues.
Their blog goes back to 2011 - so using a tool to manually edit each one is a no-no.

Would a simple HTACCESS 301 like this work?

Code: Select all

RewriteRule /sitename-blog/$ /blog/? [R=301,L]
It needs to capture the main blog page, plus categories, plus the blog posts themselves.

Thanks

Simon