Answer the question
In order to leave comments, you need to log in
How to pass GET parameters with routing?
Use such htaccess for beautiful URLs like site.ru/wtfnigga
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ ./index.php?route=$1
Answer the question
In order to leave comments, you need to log in
For me, for beautiful URLs, it's better to use this #For
example, the user's page
RewriteRule ^u([0-9]+)(/?)+$ profile.php?id=profile&id=$1 [L]
And the user's address will look like this:
/u1 or /u2, depending on the user ID
profile.php?id=profile&id= naturally replace with your own
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question