How to redirect requests based on matching list of strings using mod_rewrite in the Apache httpd?

Solution Unverified - Updated -

Issue

How to redirect http requests based on matching list of strings in the Apache httpd? Currently, the requests are redirected by writing rewrite rules for each string in conf/httpd.conf.

Environment

  • Red Hat Enterprise Linux (RHEL)
  • Red Hat JBoss Web Server (JWS)
  • Red Hat JBoss Core Services (JBCS)
  • Apache httpd Web Server
    • 2.2.x
    • 2.4.x

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