E
E
Evgeny Kramor2018-02-14 23:50:47
Web development
Evgeny Kramor, 2018-02-14 23:50:47

How to change link using .htaccess?

There is a page: localhost/articles.php?id=5&page=primer-stranicy
Can it be converted to the following: localhost/articles/primer-stranicy or make it the next level: localhost/primer-stranicy .
When going to a page, we get the content based on $_GET['id'], and $_GET['page'] is the name of the title of the corresponding page. In other words, I need to keep localhost/primer-stranicy or localhost/articles/primer-stranicy and hide the rest with .htaccess.
Thank you very much!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question