Answer the question
In order to leave comments, you need to log in
How to properly configure GET requests in htaccess?
I set up htaccess on the site so that profile.php?user=$login is available at site/user/$login
like this:
RewriteRule ^user/([a-zA-Z0-9_\-]+)(/?)$ profile.php?user=$1 [L]
Answer the question
In order to leave comments, you need to log in
RewriteRule ^user/([a-zA-Z0-9_\-]+)(/?)$ profile.php?user=$1 [L,QSA]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question