How to config Apache2 to redirect URL
问题 I am trying to config url redirect in Apache. I have tried some approaches and nothing works. Can someone tell me the solution of this as it doesn't seem too difficult. I am going to redirect request from: https://myhost/configuration/jmx-console to: http://myanohterhost/jmx-console This is a https to http re-direct. Can someone point me to the right direction? Many thanks! 回答1: You could use the RedirectMatch directive to force Apache to send the user someplace else: RedirectMatch 301 ^(.*)$