Adding '/blog/' to only posts and redirects old url to new

190 Views Asked by At

I am planning to change permalinks to my blog to include '/blog/' to only posts. But issue is with redirect old urls (without /blog/) to new (with /blog/). Can someone help with this?

1

There are 1 best solutions below

1
Webpress On

enter image description here Log in to your WordPress Dashboard: Navigate to your WordPress website's dashboard by logging in with your credentials. enter image description here Go to Permalink Settings: In the dashboard, go to "Settings" > "Permalinks."

        Choose Custom Structure: Under the "Common Settings" section, select the 
       "Custom Structure" option.

         Set Custom Structure: In the text box next to "Custom Structure," enter 
         the following: /blog/%postname%/

         This structure will include '/blog/' before the post name in the permalink.

         Save Changes: Click the "Save Changes" button to apply the new permalink structure.