How do I redirect http URL having query string to https URL in Apache httpd Server?

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content