S
S
Senbonzakuraa2018-09-21 10:57:10
Apache HTTP Server
Senbonzakuraa, 2018-09-21 10:57:10

How to configure .htaccess to hide get parameters?

There is a url:
locachost/test?name=yakov&age=104&color=black
Should be changed to this:
locachost/test/yakov-104-black
My .htaccess:

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(([^/]+/)*[^.]+)$ /$1.php [L]

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