RewriteRule ^Interface/Base/Login.aspx?ReturnUrl=%2findex.html.var$ Interface/Base/Login.aspx [R,NC,L]
is not working. I want it to redirect to Login.aspx so it can work this is mapping another site by doing
RewriteRule (.*) http://xx.xx.xx.xx:8880/$1 [P,L]
Rewrite file is as follows:
RewriteEngine On
RewriteBase /
RewriteRule ^Interface/Base/Login.aspx?ReturnUrl=%2findex.html.var$ Interface/Base/Login.aspx [R,NC,L]
RewriteRule (.*) http://xx.xx.xx.xx:8880/$1 [P,L]
IP is hidden for protection.
You can't match query string in RewriteRule
use RewriteCond %{QUERY_STRING}
like this:
RewriteCond %{QUERY_STRING} ^ReturnUrl=.*?index\.html\.var$ [NC]
RewriteRule ^Interface/Base/Login\.aspx$ /Interface/Base/Login.aspx? [R,NC,L]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.