У меня есть url http: //localhost/index.php? user = 1 . Когда я добавляю это .htaccess < /code> file < /p>
Код: Выделить всё
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^user/(.*)$ ./index.php?user=$1
Теперь мне разрешено использовать http: // localhost/user/1 ссылка. Но как насчет http: //localhost/index.php? User = 1 & action = update Как я могу сделать это в http: // localhost/user/1/update ?
также как сделать этот url http: // local/uer/add ? Извините, я относительно новичок в .htaccess .
Подробнее здесь:
https://stackoverflow.com/questions/250 ... h-htaccess