I'm trying to redirect anyURL that contains "UserLogin" (ie: Mediawiki) to
https. This is what I've tried:
rewrite .*UserLogin.* https://domain.com$request_uri? permanent;
----
rewrite UserLogin https://domain.com$request_uri? permanent;
----
rewrite ^.*UserLogin.*$ https://domain.com$request_uri? permanent;
----
location ~* .*UserLogin.* {
return 301 https://domain.com$request_uri;
}
----
location ~ .*UserLogin.* {
return 301 https://domain.com$request_uri;
}
All of them have no effect. I'm running out of trial to match my error.
Can anyone tell me what I'm doing wrong? Thank you.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
https. This is what I've tried:
rewrite .*UserLogin.* https://domain.com$request_uri? permanent;
----
rewrite UserLogin https://domain.com$request_uri? permanent;
----
rewrite ^.*UserLogin.*$ https://domain.com$request_uri? permanent;
----
location ~* .*UserLogin.* {
return 301 https://domain.com$request_uri;
}
----
location ~ .*UserLogin.* {
return 301 https://domain.com$request_uri;
}
All of them have no effect. I'm running out of trial to match my error.
Can anyone tell me what I'm doing wrong? Thank you.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx