Files giving error 404

0

My application is simple, I did with AngularJS, just to study, it works quietly locally but when I upload to my locaweb server, the files are returning 404, is there any configuration I need to do?

AndmyapplicationIleftwellconfigured.

Index.html:

<!DOCTYPE html>
<html lang="pt-br">

<head>
  <title>Busca CEP</title>
  <base href="/">
  <meta charset="utf-8" />
  <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1' />
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,minimum-scale=1" />
  <link href='/favicon.ico' rel='shortcut icon' type='image/x-icon' />
  <!--[if lt IE 8]>
    <script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.9/es5-shim.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  <link rel="stylesheet" type="text/css" href="/dist/style.min.css" />
</head>

<body ng-app="app">

  <div ui-view=""></div>
  <toaster-container></toaster-container>

  <script src="/dist/vendors.min.js"></script>
  <script src="/app/app.min.js"></script>
</body>

</html>

route.js:

app.config(['$stateProvider', '$urlRouterProvider', '$locationProvider',

  function ($stateProvider, $urlRouterProvider, $locationProvider) {
    $locationProvider.html5Mode({
      enabled: true,
      requireBase: false
    });
    // $locationProvider.html5Mode(false).hashPrefix('');
    $urlRouterProvider.otherwise('/');
    $stateProvider

      .state({
        name: 'home',
        url: '/',
        controller: 'homeController',
        templateUrl: '/views/home.html'
      });
  }
]);

My structure is basically like this:

  • app
  • assets
  • dist
  • vendors
  • views
  • index.html
asked by anonymous 04.01.2018 / 23:19

0 answers