Urls not working unless user clicks link directly


#1

Hi, I’ve got two issues.

  1. broken links on live site. http://vergepdx.com The biggest is that I can’t seem to get links to work correctly in my build, they work in my local environment. When I deploy a build, any time a user tries to either click the back button, or go to a specific page that is not the homepage, they get a page-not found. I’ve tried giving them explicit paths just to test and see if that works but that doesn’t make a difference.

  2. 404 page not working on build. it works locally, but not in the build. I’m using /*wildcard for the path

UPDATE: looks like I need to modify my .htaccess file on my prod server. looking into it…


#3

Added to .htaccess file and that did the trick:

RewriteEngine On RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.html [L]