How do I redirect http URL having query string to https URL in Apache httpd Server?
Issue
- How do I redirect http URL having query string to https URL in Apache httpd Server?
- For example, I would like these two URLs redirect from http to https,Therefore if the query string contains ProdID then the URL needs to be redirected to https.
http://apache.example.com/testApp/foo?ProdID
http://apache.example.com//testApp/foo?ProdIDISBN=0028-4793
Environment
- Red Hat Enterprise Linux (RHEL) 6.x
- httpd-2.2.15
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.