So I’ve created a folder under my wordpress root directory containing simple vueJS html files and assets such that anyone can access them from a url like:
Mywordpress.com/externalfolder
My external folder however contains its own routes and url params so going to a url like Mywordpress.com/externalfolder/about should be handled in the page logic itself, entirely seperate from wordpress, but instead, wordpress redirects to 404.
How do i remove this behaviour and get the server to use whatever my external folder serves up, and remove wordpress from interfering with anything on the original /externalfolder/ path.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
You have 2 options:
1 – Move either WP or your vueJS into a separate folder severd from a new or sub domain,
2 – Adjust the default Wp .htaccess to ignore your externalfolder .
after
RewriteEngine On RewriteBase /
add
RewriteCond %{REQUEST_URI} !^/externalfolder/
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0