beepnl/beep-vue-app

Refreshing apiary details view results in 404 (not found)

pvgennip opened this issue · 2 comments

Refreshing apiary details view results in 404 (not found)
https://appv3.beep.nl/apiaries/28

Refreshing https://appv3.beep.nl however, does work.

@pvgennip Vue router uses history mode, which may require server configuration on production: https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations

@JuliaBD Fixed by including in Apache config

<IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.html$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.html [L]
    </IfModule>