skip to Main Content

301 redirect with query parameters and ~ in URL – Apache

I have a redirect problem where I would like to redirect a url with query parameters to another PDF entirely, e.g.: Original URL: https://www.foo.bar.com/~/bar.pdf?la Redirect URL: https://www.bar.foo.com/foo.pdf Currently my rewrite rule is as shown below: RewriteRule ^/~/bar.pdf?la https://www.bar.foo.com/foo.pdf [R=301,L,NC] How…

VIEW QUESTION
Back To Top
Search