javascript - Angular js - LocationProvider HTML5mode() and urls -


i've enabled

locationprovider.html5mode(true);

then putted on top of index.html :

<html ng-app="app"> <head>  <base href="/projects/www/#/" /> 

so if browse site using internal links example(#/users) works , urls re-writed projects/www/#/users projects/www/users

but if go directly browser projects/www/users page not found.

the 1 direct url works :

projects/www/ 

what be?

ok fixed add server side htaccess code:

rewriteengine on rewritebase /projects/www # don't rewrite files or directories rewritecond %{request_filename} -f [or] rewritecond %{request_filename} -d rewriterule ^ - [l]  # rewrite else index.html allow html5 state links rewriterule ^ index.html [l] 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -