Hide links using htaccess

You need to start with two links:

1.

/user/info/anketa.php?id=1

Make

/user/ник

2.

/user/search.php?search=какой-то текст

Make

/user/search/какой-то текст
 0
Author: Nicolas Chabanovsky, 2014-10-12

1 answers

Where's Nick here? /user/info/anketa.php?id=1. According to the second one, something like this:

RewriteEngine on

RewriteRule ^user/search.php?search=(.*)$ /user/search/$1 [R]

This will be a redirect from the link you specified to the specified format. But usually they do the opposite - with the CNC on the link with the parameters. And not a redirect, but a hidden substitution.

 1
Author: Get, 2014-10-13 04:13:55