W
W
w_b_x2017-01-04 21:53:15
PHP
w_b_x, 2017-01-04 21:53:15

How to convert parameters from address bar (GET)?

Good day!
At the moment I am passing a variable to the php script via GET, as follows:
http://site.ru/test.php?v=123
And I want to convert this view into the following:
http://site.ru/test123
Ie, hide ".php?v=".
I understand that somehow it is necessary to configure .htaccess, but I don’t know how .. and I don’t know how to get an array from php. Tell me please.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Polin, 2017-01-04
@w_b_x

It's called CNC.
here you can see examples

T
ThunderCat, 2017-01-04
@ThunderCat

1) Enable mod_rewrite on apache (if not enabled)
2) Set up xtaxess on cnc
3) Set up a single entry point, if not configured yet, and don't mess with test.php and other perversions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question