Skip to content

htaccess

Tomasz Oponowicz edited this page Mar 26, 2014 · 10 revisions

Generally speaking Adobe Flash Player doesn't allow Range header. The workaround is to use a custom query for every GET request, e.g. ?range=0-499.

Add example .htaccess at the root context of your hosting to support range queries:

<IfModule headers_module>
<IfModule rewrite_module>

	# ^(.*) if .htaccess in a root; ^/(.*) otherwise
	RewriteEngine On
	RewriteCond %{QUERY_STRING} ^(.*)bytes=(.*)$
	RewriteRule ^(.*) - [L,E=range:%2]

	RequestHeader set Range "bytes=%{range}e" env=range
</IfModule>
</IfModule>
Clone this wiki locally