Yes, I'm stuck still using apache2.2 on a system and I'm trying to use a PCRE with the apache Location directive looking for any URL not containing any images or similar. Here's some things I've tried and it just doesn't seem to do a negative conditional match.
<Location "^/(?!(?:jpe?g|png|bmp|gif|css|js|svg))(.*)">
or
<Location ~ "^.*\.(?!jpg$|png$|bmp$|gif$|css$|js$|svg$)[^.]+$">
Is this sort of thing even possible or is apache limited with this sort of thing?
If my description isn't too clear here's some examples... ;)
I want to match anything like these:
http://some.site.org/something/
https://some.site.org/else/
http://some.site.org
https://some.site.org/else/and/so/on
http://some.site.org/even/something/even/crazy_url/../../././?/
But not match anything like:
http://some.site.org/content/monkey.jpg
http://some.site.org/other/chimp.gif
https://some.site.org/phobia/snake.png
http://some.site.org/junk/style.min.css?v=6.1
https://some.site.org/stuff/juju.js?ver=0.4.1