Reverting to hashHistory for cross-platform URL stability; Setting baseURL in index.js
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
RewriteEngine On
|
||||
|
||||
RewriteBase /
|
||||
RewriteBase /iris/
|
||||
|
||||
# Handle Mopidy-Images requests
|
||||
# TODO: Look to move this into the Thumbnail component
|
||||
RewriteRule ^images/(.*)$ http://%{HTTP_HOST}:6680/images/$1 [NC,L]
|
||||
|
||||
# Rewrite /iris subfolder
|
||||
# Rewrite iris subfolder
|
||||
# This is required so our HTML file can use /iris/ as baseURL for mopidy-styled domain (ie localhost:6680/iris/index.html)
|
||||
RewriteRule ^iris/(.*)$ /$1 [NC,L]
|
||||
|
||||
# All nont-file requests go to React
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /index.html [L]
|
||||
|
||||
Reference in New Issue
Block a user