-
Notifications
You must be signed in to change notification settings - Fork 2
/
.htaccess
30 lines (21 loc) · 1006 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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