How can I make every url unique?

#1

For example if there is 2 article with same title example.com/test and for second wordpress will automatically put -2 at the end example.com/test-2 How can I make it stop doing this?

Is it possible to post id like this example.com/123/test and so the next article with same title will be example.com/124/test? only the number changes but the title stays the same

I hope I am explaining it properly.

Thanks

#23

In WordPress, if you want to avoid this specific problem

You need to delete permanently from the “Posts > Trash” menu.

image

That’s it.

#24

I did that. I don’t have any post on trash

#25

You cannot have same permalink as published or trashed or draft or private post. I hope this is clear.

1 Like
#26

Is there a way I can change permalink for certain ccategory? For example
football category articles

I want to have example.com/football/postname

and News category

Example.com/news/postname

Thanks

#27

You have to apply permalink globally like this

/%category%/%postname%/

Then as per category, permalink will appear

1 Like
#28

Even in this case also url can’t be same.

#29

This should work for you:
image

2 Likes
#30

Check the permalinks in settings

#31

Won’t work

#32

I think it should, even with date, month and year (in permalink) it should work for him.

Why so?

#33

He already tried that.

#34

@AbhishekVerma @Hitesh It works I am stupid. Cause it creates different post id. So when I delete exapmle.com/123/test post and create same post again with same title, this new one will have different post id but same title example.com/132/post so this works cause the url is different from the old one.

Thanks

1 Like
#35

Glad to know that