I use in my .htaccess
RewriteRule ^profiles/([A-Za-z0-9-]+)/$ /profile.php?city=$1 [NC]
Works normally when accessing the url:
https://site.com.br/profiles/londres
But in the page, after insert an variable get
, the php recognizes only the variable configured in htaccess, example when accessing the url:
https://site.com.br/profiles/londres?s=username
print_r($_GET);
return
Array ( [city] => londres)
that is, it does not return the variable s
in GET
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…