There is a link сайт.ру/?uid=123 , you need сайт.ру/uid123
To .htaccess file
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^([a-zA-Z0-9_-]+)(.*)$ $1.php [L] added line:
RewriteRule ^uid([\d+]+)$ /?uid=$1 [QSA,L] Everything works and the page on the link: сайт.ру/uid123 opens.
Question: another link to сайт.ру/edit?uid=123 also needs to be made in the form: сайт.ру/edit/uid123 . Added to .htaccess line:
RewriteRule ^edit/uid([\d+]+)$ /edit/?uid=$1 [QSA,L] But it does not pass the $ _GET ['uid'] parameter (empty comes). Help set up a regular season!