Retain query string on rewrite .htaccess
snippet in htaccess

Retain query string on rewrite .htaccess

user508

RewriteRule ^photos/([a-zA-Z0-9_-]+)$ photoviewer.php?photo=$1 [L,QSA]