team-bubbles / nmcs1

New Media Career Skill 1 Portfolio site. All rights reserved.
GNU General Public License v3.0
1 stars 2 forks source link

Serverside config to work with pushState:true #34

Closed lcb931023 closed 9 years ago

lcb931023 commented 9 years ago

Backbone.history.start({pushState:true}); ( Template/src/javascript/app.js#L37 ) would use pushState instead of hash changes.

This makes the URL much cleaner, but also requires the server to reroute any URL requests to the root index.html. (e.g. http://example.com/project/pro1 would normally try to load example.com/project/pro1/index.html, but we want it to load example.com/index.html, and have the backbone router take over)

I'm following this tutorial to configure the url, but ran into some issues with my server provider. Will update once that gets solved and test successful.

Afterwards this configuration should go into readme.md

lcb931023 commented 9 years ago

fixed in https://github.com/team-bubbles/nmcs1/commit/185eaaccc779f76d509877aea1518f6ad838eb31