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