Here is what I started with:
- Code: Select all
Options +FollowSymLinks -MultiViews -Indexes
RewriteEngine On
php_flag magic_quotes_gpc Off
php_flag register_globals 0
RewriteRule ^(.*)$ dispatcher.php [NS,QSA,L,NC]
A request for a valid video would look like this: http://myhost.com/videos/myvideo.swf, but the file is actually located at resources/videos/myvideo.swf. I would like for those videos to be handled by apache, and let php handle everything else.
I've tried all sorts of variations of things like this before the dispatcher call, but nothing seems to work...
- Code: Select all
RewriteCond $1 !^videos/(.*)$
RewriteRule ^videos/(.*)$ resources/videos/$1 [NS,QSA,L,NC]