I am creating a website in PHP with articles, where articles can be added via a form. All data is stored in a MySQL database.

First I made a separate page of each article, eg article1.html, article2.html, ... but then I got a lot of pages.

Now I saw that on other websites the articles are behind the url, eg. https://mywebsite.com/article1

I've tried searching the internet for how they do this, but I'm...