When we need to redirect the url like,
www.domain.com/something.php?asd=327154723448
to
www.domain.com
Please use the below rule, this worked for me in nginx.
rewrite ^/something.php(.*)$ /? http://www.domain.com/? last;
www.domain.com/something.php?asd=327154723448
to
www.domain.com
Please use the below rule, this worked for me in nginx.
rewrite ^/something.php(.*)$ /? http://www.domain.com/? last;
No comments:
Post a Comment