Answer the question
In order to leave comments, you need to log in
How to make a rule for .htaccess?
Trying to set up .htaccess to redirect to another page with a few options. I can't figure out what's wrong... I've already tried many options, but none of them work. hosting has mod_rewrite,
RewriteEngine On
RewriteRule ^launcher/auth.php?user=(.*)&pass=(.*)$ index.php?mode=launcher&user=$1&pass=$2
Answer the question
In order to leave comments, you need to log in
RewriteCond %{QUERY_STRING} (^|&)user=\(.+)($|&)
RewriteCond %{QUERY_STRING} (^|&)pass=\(.+)\$($|&)
RewriteRule ^launcher/auth\.php$ /index.php\?mode=launcher&user=%1&pass=%2/? [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question