How can I get rid of the hash tag in my AngularJS site URL?

I uploaded an AngularJS site to my gh-pages branch and pointed the DNS A records to Now the site is live but I see a hash tag as part of the URL structure. Here are the two URLs one can see the home page of the site at

  • Error in npm install command
  • Accesing Jenkin API from AngularJS
  • angular-phonecat tutorial- server not working
  • Why is my ionic www folder not being tracked by Git?
  • How to split angular app client / server side code in git repositories
  • ngDrive not defined?

    The URL I want visitors to enter and see in the address bar is simple If one enters it redirects to

    How would I make the URL of the home page just with out the www. and trailing /#/

  • Can't install Angular pack with Bower: UNABLE_TO_VERIFY_LEAF_SIGNATURE Request
  • AngularJS & PHP: upload my app on several servers after changes
  • Multiple branches of one project with bower
  • How to install angular-mocks via bower.json?
  • Multiple GitHub Pages and custom domains via DNS
  • AngularJs: Show version number from either git or bower
  • One Solution collect form web for “How can I get rid of the hash tag in my AngularJS site URL?”

    In the app’s main module’s config function, use the html5mode() function of the $locationProvider. Read these docs for more info:$locationProvider and$location.


    angular.module('myApp', []).
      config(function($locationProvider) {
    Git Baby is a git and github fan, let's start git clone.