I am new to PHP and server-side operations so asking this basic question here. I found a lot of similar questions and answers here but I fail to achieve what I want. How can I w
Try this in your .htaccess file
RewriteEngine On
RewriteRule ^app/(.*)/(.*)/?$ /app.php?appname=$1&appid=$2 [QSA,NC,L]
EDIT :
RewriteEngine On
RewriteCond %{THE_REQUEST} app\.php\?appname=(.*?)&appid=([0-9]+) [NC]
RewriteRule ^ /app/%1/%2? [R=302,L]
RewriteRule ^app/(.*)/([0-9]+)/?$ /app.php?appname=$1&appid=$2 [L,QSA]