.htaccess - Backbone.js router using pushstate with XAMPP apache server on localhost -


I'm trying to get the router to work with my XAMPP Apache server on the local host backbone.js .

Let me Apache need to stop to evaluate those paths which the router can send everything to the /test_backbone/index.html . I have tried everything that I can find, nothing works

Currently, I have this in the httpd.conf file:.

  # HTML5 pushstate (history) support: & lt; IfModule mod_rewrite.c & gt; Option + FollowSymLinks IndexIgnore * / * # in RewriteEngine On RewriteEngine #% turn to rule {REQUEST_FILENAME} RewriteCond -f RewriteCond% {REQUEST_FILENAME} -d RewriteRule /test_backbone/index.html & lt! (*.); / IfModule & gt;   

I have also tried:

  # html5 PustState (history) support: & lt; IfModule mod_rewrite.c & gt; The RewriteCond% {REQUEST_FILENAME} RewriteEngine on -f RewriteCond% {REQUEST_FILENAME} -d RewriteCond% {REQUEST_URI} index RewriteRule index.html [L] & lt! (*.); / IfModule & gt;   

I was impressed to load some static files from those rows if it is present, but none of my javascript files are being loaded under that, everything goes back to /test_backbone/index.html

I also .htaccess to files I know I I'm not even putting this code in the right place for everyone.

Any help would be greatly appreciated!

Your configuration should work httpd.conf modify the apache There is no need to restart when restarting while modifying .htaccess .

In the case of a bus, the flag to rewrite the rule in '[l]' httpd.conf , so after the match it ceases to process more rules.

Comments