Take the 2-minute tour ×  I am trying to make use of an image
processing app. It requires an Apache directive in a .htaccess
file. But no matter what I do to the RewriteRule, I cannot
getting it to work. Causes a Server 500 error.  The rule is:
This should take any jpg/gif/png file and send it over to the
adaptive-images.php file, where it will be run through a process
for image sizing.  At this point I am beyond my expertise for
RewriteRules.  share|improve this question  1 Answer 1  The
first parameter of the RewriteRule directive is a regex so you
need to escape the period: \.. Your rule also won't match
because you need to match against the whole URI and not just the
file extension. Thus the .* is necessary to match whatever might
come before the extension (e.g. filename.jpg or
/images/filename.jpg).  RewriteRule .*\.(?:jpe?g|gif|png)$
adaptive-images.php  I don't believe forgetting this will cause
a 500 error on its own so you should review your Apache error
log for more details if this doesn't fix the