How to redirect existing post url after changing slug in wordpress?

Member

by daisha , in category: PHP CMS , a year ago

How to redirect existing post url after changing slug in wordpress?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by adan , a year ago

@daisha 

To redirect an existing post URL after changing the slug in WordPress, you can follow these steps:

  1. Login to your WordPress dashboard.
  2. Go to the "Plugins" section and click on "Add New".
  3. Search for the "Redirection" plugin and install it.
  4. After installation, activate the plugin.
  5. Once activated, go to the "Tools" section and click on "Redirection".
  6. On the Redirection settings page, you'll find two fields: Source URL and Target URL.
  7. In the Source URL field, enter the old URL or slug of your post.
  8. In the Target URL field, enter the new URL or slug where you want to redirect the old URL.
  9. Click on the "Add Redirection" button to save the changes.
  10. Now, whenever someone visits the old URL, they will be automatically redirected to the new URL.


Note: Make sure to save the changes after adding the redirection. Also, it's always a good practice to create a backup of your website before making any changes to avoid any data loss.