Hey,
My page is going to host hundreds or even thousands of projects and hosting /Release files seems like a bad idea. Im very disappointed in Google’s decision because a big part of my business model was built on Unity Web Player - that would have been a perfect solution.
I’ve searched for days a way to use only compressed files and I’ve only recieved errors and disappointment. Is this idea even possible?
I & probably many more could use a step-by-step guide for this - solutions for all kinds of builds and servers we could try out if one fails - because there is none I could find…
Im using Apache 2.4.10 server and Wordpress.
.htaccess in not included to any of following uploads, I copied Unity’s .htaccess to server’s .htaccess - screenshot attached!
Everything seems to work if I include Release files and leave everything as “default”, Chrome inspector shows, that files are compressed like they should be.
Things I’ve tried:
1) Delete /Release, rename /Compressed to /Release, delete “gz” from extensions - 404, Not Found
2) Delete /Release, move /Compressed files to index.html location, delete “gz” from extensions, remove /Release/ from every “scr=” in index.html - Uncaught SyntaxError: Unexpected token ILLEGAL
3) Leave extensions, files and .html as it is, upload everything but /Release folder - 404, Not Found
4) Leave files and index.html as it is, remove “gz” from /Compressed extensions, upload everything but /Release folder - Uncaught SyntaxError: Unexpected token ILLEGAL
5) /Compressed files in index.html location, “gz” added to extensions in index.html script - Uncaught SyntaxError: Unexpected number
Everything is tested in Chrome.
This is waaaay over my head. I’ve learned 4 programming languages, some HTML, PHP, CSS and using Unity all in past 9 months and Im stuck at this…
I welcome any opinion and advice.
Someone could also share the recommended settings for player, quality and build so that it would actually work ,files would be as small as possible and shorter loading time.
Personal experience: 3MB Unity Web Player file to 80MB /Release and 24MB /Compressed.