Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue-router: History Mode - Built app blank on public subdirectory #161

Open
MarioCarloni opened this issue Feb 15, 2018 · 0 comments
Open

Comments

@MarioCarloni
Copy link

MarioCarloni commented Feb 15, 2018

We've developed an app using Vuepack, and wish to use vue-router's history mode to remove the hash sign from the web address.

We'd placed the built /dist contents in a subdirectory on an Apache (http, not https) server, ie. var/www/subdirectory. Prior to building, we'd configured relevant files as such from various forum threads:

build > config.js: publicPath: '/subdirectory'
router > index.js: mode: 'history'
app.js: require('offline-plugin/runtime').install();
.htaccess: https://router.vuejs.org/en/essentials/history-mode.html (See Apache config)

However, once relevant files are placed in the public subdirectory, the app returns a blank page, yet returns correctly when vue-router mode is set to 'hash'. No errors are found in the console.

Please let me know of further relevant information you may need in order to help resolve this issue.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant