V
V
Vladimir Shiklgruber2015-04-02 18:42:50
Google
Vladimir Shiklgruber, 2015-04-02 18:42:50

"beautiful" links??

Hello. I am making a cnc for a site based on php.
I figured out how to get links of the 1st level of the form beta.igrodel.tk/reg
Next, I want to pass 2 and 3 get in this address, and get beta.igrodel.tk/reg/user/id_54543 in the address bar
Now I use htaccess

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1

Thanks in advance for your help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Komarov, 2015-04-02
@aaadddminnn

Why not use a ready-made router instead of cooking your own noodles?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question