Forum Moderators: phranque
In a Rewrite rule condition is it possible to make 3 possibilities?
If we have:
RewriteRule \.(gif¦jpg¦jpeg¦GIF¦JPG¦JPEG)$ [other_domain.com...] [R,L]
is it possible to write:
RewriteRule \.(gif¦jpg¦jpeg)$ [other_domain.com...] [NC,R,L]
Yes, you can use the [NC] flag in a RewriteRule directive.
Ref: Apache mod_rewrite documentation [httpd.apache.org]
Jim
Thank you.
Then, I may write:
RewriteRule \.(gif¦jpg¦jpeg)$ [other-domain.com...] [NC,R,L]
Maleville
RewriteRule \.(gif¦jpg¦jpeg)$ [other-domain.com...] [NC,R,L]
Don't forget to fix the pipes.