Welcome Guest, Not a member yet? Register   Sign In
SWF Files in .htaccess
#8

[eluser]Dr. Seuss[/eluser]
Okay, I've made this change to the .htaccess file:

RewriteCond $1 !^(index\.php|images|robots\.txt|css|flash)

Such that the file now reads:

Quote: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|flash)
RewriteRule ^(.*)$ index.php/$1 [L]

Interestingly, if you go directly to the swf file:

http://radsrc.fastcheapweb.com/flash/randomizer.swf

...you will see that it "works"; that is, it loads the other swf files and plays them.

So a further test that I made was to replace the relative references in the view from "flash/randomizer.swf" to to full path explicit reference that works above, "http://radsrc.fastcheapweb.com/flash/randomizer.swf". This does _not_ play. Why would it work when it is on the page by itself but not work when it is embedded? Makes no sense.


Messages In This Thread
SWF Files in .htaccess - by El Forum - 01-30-2009, 12:06 PM
SWF Files in .htaccess - by El Forum - 01-30-2009, 02:51 PM
SWF Files in .htaccess - by El Forum - 01-30-2009, 04:40 PM
SWF Files in .htaccess - by El Forum - 01-30-2009, 04:52 PM
SWF Files in .htaccess - by El Forum - 01-30-2009, 05:13 PM
SWF Files in .htaccess - by El Forum - 01-30-2009, 05:59 PM
SWF Files in .htaccess - by El Forum - 01-30-2009, 06:48 PM
SWF Files in .htaccess - by El Forum - 01-31-2009, 03:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB