D
D
Dmitry STEM2018-10-06 22:00:18
htaccess
Dmitry STEM, 2018-10-06 22:00:18

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

2 answer(s)
D
Dimonchik, 2018-10-07
@dimonchik2013

^/index.php how does it lead?

V
Viktor Taran, 2018-10-09
@shambler81

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 question

Ask a Question

731 491 924 answers to any question