Webserver does not honour mod_rewrite rules specified in httpd.conf

Solution Verified - Updated -

Issue

  • Webserver does not honour mod_rewrite rules specified in httpd.conf

Example

<Directory /home/xxx> 

<IfModule rewrite_module> 
  RewriteEngine on 
  RewriteBase /home/xxx
  RewriteCond $1 !^(assets|cbox|cn|de|images|jp|kr|system|themes|favicon\.ico|robots\.txt|index\.php) [NC] 
  RewriteRule (.*) /index.php/$1 [L] 
</IfModule> 
 </Directory>

Environment

  • Red Hat Enterprise Linux 5

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