jaedb/spotmop/master/.htaccess - Htaccess File

jaedb/spotmop/master/.htaccess

# If you've pulled Spotmop via GitHub, you can run this using any webserver
# by navigating to localhost/test. Otherwise we'll redirect it to the Mopidy instance as per below

RewriteEngine On

# rewrite all image requests to our default mopidy port
RewriteRule ^images/(.*)$ http://%{HTTP_HOST}:6680/images/$1 [NC,L]

# rewrite all root-level requests to the static folder
RewriteCond %{REQUEST_URI} !/mopidy_spotmop/ [NC]
RewriteRule (.*) /mopidy_spotmop/static/$1 [NC,L]

# redirect our old /src/ dev link to the new dev.html file
RewriteRule /src/ /dev.html? [L,R=301]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_URI, static

Comments

Apache