diff --git a/mopidy_iris/static/.htaccess b/mopidy_iris/static/.htaccess index d27b7e9a..e44f19be 100755 --- a/mopidy_iris/static/.htaccess +++ b/mopidy_iris/static/.htaccess @@ -6,6 +6,10 @@ RewriteBase / # TODO: Look to move this into the Thumbnail component RewriteRule ^images/(.*)$ http://%{HTTP_HOST}:6680/images/$1 [NC,L] +# Rewrite /iris subfolder +RewriteRule ^iris/(.*)$ /$1 [NC,L] + +# All nont-file requests go to React RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.html [L] diff --git a/src/.htaccess b/src/.htaccess index d27b7e9a..aeead89e 100755 --- a/src/.htaccess +++ b/src/.htaccess @@ -1,6 +1,6 @@ RewriteEngine On -RewriteBase / +RewriteBase /iris/ # Handle Mopidy-Images requests # TODO: Look to move this into the Thumbnail component diff --git a/src/index.html b/src/index.html index 896d3387..2a509960 100755 --- a/src/index.html +++ b/src/index.html @@ -13,8 +13,8 @@ - - + +
@@ -25,6 +25,6 @@ - +