[Radiant] Flash attachment

Oliver Baltzer oliver.baltzer at nobits.com
Tue Apr 10 17:00:43 CDT 2007


> I want to add a flash mp3 player to all pages but the flash player has to be
> in the same folder as the page to play - this means that each page (eg.
> /info/) cannot access the flash. As the site is not static I cannot simply
> upload the flash to each directory. Any ideas how I can get this to work
> people?

You can use Apache's mod_rewrite to match a particular pattern in the
URL and either proxy the request to the proper URL or redirect.

RewriteRule myflashfile.swf$ http://localhost:3000/myflashfile.swf [P]

will load the Flash file for each request that ends with myflashfile.swf.

I hope this helps.

Cheers,
Oliver

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: OpenPGP digital signature
Url : http://lists.radiantcms.org/pipermail/radiant/attachments/20070410/ff291171/signature.bin


More information about the Radiant mailing list