How to make a lot of pages on a single template without $_GET?

Is it possible to make it so that clicking on url mysite500.com/videos/morskie-kotiki the user got on mysite500.com/videos/index but to the user saw the url as mysite500.com/videos/morskie-kotiki and the search engines too, and I could process the query and display the seals.

And what's best for SEO? A lot of regular pages, or that gibberish?

A Apache Server.
June 3rd 19 at 19:03
3 answers
June 3rd 19 at 19:05
It is not entirely clear what you want, but like a typical routing. The site needs to be 1 entry point (1 file which redirected all requests), the address bar according to certain rules is parsed and the user is shown different pages of the website. And Google php routing.
Yes, everything here is clear, written another bike..... - ted_Leuschke commented on June 3rd 19 at 19:08
to get specialists running - Mellie.Cronin commented on June 3rd 19 at 19:11
that ? - kenny commented on June 3rd 19 at 19:14
June 3rd 19 at 19:07
Yes, there is routing needed
June 3rd 19 at 19:09
This question has been asked a million times, but I don't know how to look for the toaster.

In the videos folder put .htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php

This will force Apache requests to all non-existing files to redirect to index.php

And then in index.php look at the REQUEST_URI

Find more questions by tags PHP