How to setup .htaccess file correctly?

Hi there,

i was abled to package Tappy Chicken into html5 and to start it on a local host on Win 10. (applause!!!)

On 46.0a1 and Chrome 47.0.2526.106 m (64bit) i needed to add a .htaccess file on a public apache server with the following content, or else it would give me an error:

<files *.gz>
AddType "text/javascript" .gz
AddEncoding gzip .gz
</files>

The problem is, that it won’t load in Opera 12.17 and Edge 25.10586.0.0.

From this [post][1], i edited my .htaccess file to look like this:

<files *.gz>
AddType application/x-javascript .jsgz
AddType application/octet-stream .datagz

RewriteEngine on
# If client accepts compressed files
RewriteCond %{HTTP:Accept-Encoding} gzip
# and if compressed file exists
RewriteCond %{REQUEST_FILENAME}gz -f
# send .ext.gz instead of .ext
RewriteRule ^(.+).(mem|js|data|symbols)$ $1.$2gz

AddEncoding gzip .jsgz AddEncoding gzip .datagz AddEncoding gzip .memgz AddEncoding gzip .symbolsgz
</files>

but that just gives another error and Tappy Chicken won’t even run on Firefox or Chrome anymore.

Is it even possible to run UE4 games on Edge/Opera ?
Do we really not need to install Emscripten and Python anymore ?

Thank you very much

Trying to host HTML5 game on Apache server, failing to load blob - Platform & Builds - Epic Developer Community Forums

Uberman,

Due to the large volume of questions and comments concerning the Engine, we did not have a to respond to your post at the time you submitted it. However, if you are still interested, the following is our documentation on HTML5 in UE4: [HTML5 Game Development][1]. You may also find our [Forums][2] very useful.

Thanks!

Sharing and Releasing Projects for Unreal Engine | Unreal Engine 5.1 Documentation
[2]: https://forums.unrealengine.com/

The mobile web browser could open the HTML5 project?

No success for me. (Android - Chrome)

I’ve got it online by just deleting the preexisting .htaccess file.