"RewriteCond: bad flag delimiters" with space in condition

Solution Verified - Updated -

Issue

  • We need a RewriteCond that checks for a value with a space. But the config fails to start when we have a space in the condition claiming RewriteCond: bad flag delimiters.

Environment

  • Apache httpd
  • mod_rewrite

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