[eluser]Dr. Seuss[/eluser]
I am trying to enable swf files inclusion in my views, but don't think my .htaccess file is allowing swf files to be retrieved. My .htaccess file looks like this:
Code:
RewriteEngine On
RewriteBase /
## MIME TYPES ###
AddType application/x-shockwave-flash .swf
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^app.*
RewriteRule ^(.*)$ /index.php/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the robots.txt file
#Submitted by Michael Radlmaier (mradlmaier)
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
I used this sample htaccess file when I was having trouble getting images to download.
I have searched all over the forum posts and google myriad htaccess tutorials and cannot find an example that works. I obviously do not understand this sufficient to allow swf requests. My js, css, gif and jpg files are all coming down fine, but no luck with swf. I tried the following, with no luck:
Code:
RewriteCond $1 !^(index\.php|images|robots\.txt|css|swf)
Any help would be appreciated.