Rewrite rule for custom permalink structure

Based on your comments in the question, I believe I have an answer.

Visit your WP Admin Dashboard (example.com/wp-admin/) and click on Settings, then Permalinks.

Here you will want to choose “Custom Structure” and use the following structure (copy/paste):

/articles/%postname%-%post_id%.html

This will enable the slug “articles” and the structure you are looking for, which is post name and ID.

The only catch here is the WordPress ID’s are not as long as you are looking for. These IDs in the database start from 1 and increment with each post.

Hope this helps.