skip to Main Content

I’ve created a page which needs to have the slug /replay.

When saving out this page, I’ve realised that it saves it as /replay-8, meaning 7 other instances of replay exist.

I took a look at my pages, there’s no other pages that have /replay in its slug. Then, I tried accessing /replay-7 to see what it looks like and it took me to /uploads/2021/02/replay-7.svg

I have no redirects in place, nor any plugins, so is this happening out the box with WordPress?

I don’t want to change filenames as a solution as it’ll break anywhere those images are used.

2

Answers


  1. You’ll have to rename the svg files or come up with another slug for the page.

    WordPress uses the Post Name to generate the plug as can be seen here

    Alternatively you’ll need to look at a plugin.

    Also, you may need to bear in mind that if you delete the media files, they still exist in the database so you would get replay-8 unless you clean up the DB.

    Login or Signup to reply.
  2. Delete the image from the media browser and re-upload it.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search