Is there a configuration in Github Pages that allows you to redirect everything to index.html for a Single Page App?

I’m trying to post my SPA app that works fine locally but when I push it to Github Pages, the interior pages don’t register if you navigate to them directly.

For example http://USER.github.io/PROJECT_NAME/ works but http://USER.github.io/PROJECT_NAME/about doesn’t because theres no redirect or rewrite. The index.html is located at the root of the project.

16 thoughts on “Is there a configuration in Github Pages that allows you to redirect everything to index.html for a Single Page App?”

  1. 458255 890382Oh my goodness! an amazing article dude. Thanks a ton Nonetheless I will be experiencing problem with ur rss . Do not know why Not able to join it. Can there be everybody acquiring identical rss problem? Anybody who knows kindly respond. Thnkx 211459

    Reply
  2. 901171 491957The vacation unique deals offered are believed as a selection of possibly the most preferred and therefore within your budget all more than the globe. Quite a number of hostels can be proudly located inside property which is accented who has striking seashores encouraging crystal-clear rivers, contingency of an Ocean. hotels compare rates 463583

    Reply

Leave a Comment