so I tried both solutions and neither seem to work. so something is funny. I'm using stateprovider in index.route.js like this:
$stateProvider
.state('concept', {
//url: '/', //just to make sure this page shows up
//url:'/concept',
//url:'/#/concept',
url: '/subdirectory/concept'
i tried adding the base href to the head of the index.html file:
<head>
<meta charset="utf-8">
<title>title of site</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<base href="/subdirectory/" />
and added the html5mode = true at the end of the index.route.js file:
$locationProvider.html5Mode(true);
$urlRouterProvider.otherwise('/');
inside protractor.conf.js I had to change the baseUrl from localhost to the webserver:
//baseUrl: 'http://localhost:3000',
//baseUrl: 'http://samplewebsite.com/subdirectory' - doesn't work
baseUrl: 'http://samplewebsite.com' - works
the closest I got was when I click a state (say /concept) the url changes to:
http://samplewebsite.com/#/subdirectory/concept
so the hash should be after subdirectory like it is locally
so at this point I'm kind of just guessing and changing things around experimenting. I build the project before I upload.