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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.