Migrated Website needs a redirect WordPress


#1

Hello there, great community! :slight_smile:

I have recently migrated a website from one server to another, keeping the same domain. The website used to work with domain.com The site used to have the default WP permalinks structure (?p=x)

Now, I did an ee wp install with w3tc plugin, and I use this permalink structure: /%category%/%post_id%/%postname%

What I need to do is to redirect any user that goes to domain.com/?p=x to domain.com/�tegory%/%post_id%/%postname%

I know it shouldn’t be difficult, it surely needs to be a single location rule, but somehow I can’t make it work.

Can somebody please help me? Thank you very much!


#2

It’s not trivial.

Yoast SEO has an option to “force pretty URLs”. It may be useful for your case, but do extensive testing because sometimes it leads to redirect loops.

If there’s some other way to achieve what you aim I don’t know.


#3