Hello Guys,
I’m putting my hair off trying to make vue Router working with wordpress.
I have a VueJS 2.0 single app website www.mysite.com directly on the homepage of a Wordpress + sage 9 installation. The app is located on the homepage of wordpress so the whole website is the actual app.
When I activate html5 history mode in Vue-router to have clean url (’/link’ instead of ‘/#/link’ ), everything works fine — the address change to www.mystite.com/projects — but when I access the link directly from the address bar or if I just refresh the current page, I got the 404 page of wordpress/sage9… look like Wordpress take over on each direct access to the site so it doesn’t redirect to the app.
My htacess looks like that :
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
My permalinks are configured to be www.mysites.com/%postname%/
Anyone already when through this situation ?
Any help would be greatly appreciated
Many thank,
Evan