A
A
Artem Volkov2015-07-30 21:05:58
Apache HTTP Server
Artem Volkov, 2015-07-30 21:05:58

How to make cnc using .htaccess?

good time of day to you. Here is such a thing.
My site has the following URLs: site.com.ua/tov.php?id=12345
But I wanted site.com.ua/id12345
How to implement it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Entelis, 2015-07-30
@AronTito

RewriteEngine On
RewriteRule ^id(\d+)/?$ /tov.php?id=$1 [QSA,L]

K
Kirill, 2015-07-30
@kirokysuper

Look towards the MVC pattern. There are a lot of video tutorials on the Internet on how to make MVC in PHP.
And here you can read about patterns habrahabr.ru/post/215605

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question