I have already added in the header section <base href="/"/>, 

var app = angular.module("myApp", ["ngRoute", "slideshow", "json", 
"accessoires", "wheretobuy", "forum-page"]);
app.config(function($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true).hashPrefix("!");
$routeProvider
.when('/', {
templateUrl : 'pages/home.html', 
controller : 'HomeController', 
})
.when('/accessories', {
templateUrl : 'pages/accessories.html', 
controller : 'AccessoriesController', 
})
.when('/wheretobuy', {
templateUrl : 'pages/wheretobuy.html', 
controller : 'WheretobuyController', 
})
.when('/forum', {
templateUrl : 'pages/forum.html', 
controller : 'ForumController', 
})
.otherwise({redirectTo: '/'});
});
app.controller('HomeController', function($scope, $http) {
});
app.controller('AccessoriesController', function($scope, $http) {
});
app.controller('WheretobuyController', function($scope, $http) {
});
app.controller('ForumController', function($scope, $http) {
});


But when I try to refresh the current page, there page is showing an error 
404. No idea how to solve this. Read many answers on Stack Overflow, only 
it seems nothing works for me. 

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to