"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 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.