Good evening. Friends, help solve the problem: I want to alter the following URLs:
http://site.com/user?id=1 on urlah of this type:
http://site.com/user/1 In HTACESS prescribed this:
RewriteCond %{THE_REQUEST} ^[AZ]{3,9}\ /([^\ ]+)\?id RewriteRule ^/?(.*)\?id$ /$1 [L,R=301] But it does not give anything :( Help me figure it out, thanks in advance!
UP: Here is this code
RewriteRule ^([a-zA-Z0-9-_]+)$ user.php?id=$1&%{QUERY_STRING} [NC,L] He was able to achieve that url was of this type:
http://site.com/1 where "1" is an id, which is successfully transmitted via $ _GET ['id'], but I need to make the URL like this:
http://site.com/user/1 That is to add before the "1" another user / Help :)
http://site.com/user?id=1into the address bar (and see exactly that), and Apache sent thehttp://site.com/user/1request to the script (or processed it himself)http://site.com/user/1? - tutankhamun