What's wrong with this .htaccess rewrite

Posted by titel on Stack Overflow See other posts from Stack Overflow or by titel
Published on 2010-06-11T13:34:12Z Indexed on 2010/06/11 13:43 UTC
Read the original article Hit count: 273

Filed under:
|
|

Hi guys,

I spend a lot of time trying to figure out what's wrong with this .htaccess rewrite with no success. It produces a "500 Internal Server Error" :(

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/(([^/]+/)*)gallery/
RewriteCond %{DOCUMENT_ROOT}%1gallery/cache/$0 -f
RewriteRule ^.+ cache/$0 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.* index.php/$0 [L]

Can anyone see any problem?

Thanks in advance,
Constantin TOVISI

© Stack Overflow or respective owner

Related posts about apache

Related posts about .htaccess