Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e93d865aea
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (21 sloc) 1.006 kb
RewriteEngine On
RewriteRule ^$ /server/views/static.html
RewriteRule ^style.css$ /server/views/style.css
#jquery stuff - css, images, js
RewriteCond %{REQUEST_URI} !^/client/
RewriteRule ^(js/.*)$ /client/$1
#client.js
RewriteCond %{REQUEST_URI} !^/client/
RewriteRule ^client.js$ /client/client.js
RewriteCond %{REQUEST_URI} !^/data/
RewriteRule ^(.*)\.json$ /data/pages/$1
#work around the issue where in local edit mode we still ask the server, even if the server can tell us nothing
#should really use the 404 for 'topic does not exist' and then have the client create it locally
RewriteCond %{REQUEST_URI} ^/data/
RewriteCond %{REQUEST_URI} !^/data/pages/missing-page
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* /data/pages/missing-page
RewriteCond %{REQUEST_URI} ^/data/
RewriteRule .* - [T=application/json]
#SvenDowideit@fosiki.com's gravatar - you'll want to change this :)
RewriteRule ^favicon.png$ http://en.gravatar.com/userimage/3255925/c3addcadf86caced332408a2e0b4d68b.jpeg
Jump to Line
Something went wrong with that request. Please try again.