Errors with HTML 5 build on GreenGeeks server

Hey everyone,

I’ve been working on packaging a project and pushing it to a websever I’ve spun up using the GreenGeeks service. I’ve gotten the build working locally, but when I make edits to the .htaccess file, I get an internal 500 error. I don’t know a whole lot about editing .htaccess files so forgive me if this is a stupid answer.

Here’s my .htaccess.

I’ve tried with just using

AddEncoding gzip gz

as well.

#GreenGeeks .htaccess additions

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

#ProgenCPP HTML5 build

#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
#<Directory "/home/minzostu/public_html/wp-content/projectfiles/progen/Content">
# AddEncoding gzip gz
#</Directory>

Nvm, I got it working by adding

AddType “text/javascript” .gz
AddEncoding gzip .gz

in place of the rest of the commented code. The file now looks like:

#GreenGeeks .htaccess additions

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

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

I’m now having an error displaying the game on my website, but that’s Wordpress related.

If anyone has this issue and comes across this, I found the answer here:

Cheers!