0

My website has hundreds of posts containing some links without the ending slash /

I want to be be able to find all these links and add the trailing slash /

For example /dir/this-page becomes /dir/this-page/

Ideally I would prefer to do this via WP-CLI or MySQL.

I did look at Apache rewrite rules in .htaccess but I want the actual post content to update instead.

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
ianhman
  • 73
  • 1
  • 12

0 Answers0