File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -199,9 +199,10 @@ LoadModule alias_module modules/mod_alias.so
199199LoadModule rewrite_module modules/mod_rewrite.so
200200
201201<IfModule mod_rewrite.c >
202+
202203 RewriteEngine On
203204
204- # Exclude /openmina-node from the general rewrite rules
205+ # Exclude specific paths from rewriting if needed
205206 RewriteCond %{REQUEST_URI} ^/openmina-node/ [NC,OR]
206207 RewriteCond %{REQUEST_URI} ^/mina/webrtc/signal [NC]
207208 RewriteRule ^ - [L]
@@ -211,8 +212,8 @@ LoadModule rewrite_module modules/mod_rewrite.so
211212 RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
212213 RewriteRule ^ - [L]
213214
214- # Rewrite all other requests to index.html
215- RewriteRule ^(.*)$ /index.html [L]
215+ # If the requested resource doesn't exist, use index.html
216+ RewriteRule ^ /index.html
216217</IfModule >
217218
218219SSLProxyEngine On
@@ -500,6 +501,7 @@ LogLevel warn
500501 AddType application/x-gzip .gz .tgz
501502 AddType application/wasm .wasm
502503 AddType application/javascript .js
504+ AddType text/javascript .js
503505 #
504506 # AddHandler allows you to map certain file extensions to "handlers":
505507 # actions unrelated to filetype. These can be either built into the server
You can’t perform that action at this time.
0 commit comments