I
I
Ivan2015-04-24 12:24:51
PHP
Ivan, 2015-04-24 12:24:51

How to correctly change url using rewrite rule in htaccess?

I'm going to make readable URLs like this on the site -
site.ru/id/title.html
Here id and title are GET parameters that initially have this kind of
site.ru/blog.php?id=1500&title=interesting-article
All this I want to use .htaccess and rewrite rules to remake this
site.ru/1500/interesting-article.html Please help me
make a rule with a regular expression that allows this to be implemented.

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