I am facing a challenge with my static site as I am unable to add rewrites through htaccess. Currently, our site is built using Vue on top of static .html templates such as \example\index.html
. When I want to create a subpage within this layout, I have to manually create \example\subpage\index.html
, and while it works fine when accessed via www.mywebsite.com/example/subpage/, I desire the ability to pull in data dynamically from an API feed with dynamic URLs like
\example\subpage\any-page-name-here
.
The closest workaround I've discovered so far is by using the hash symbol (#) in the URL structure like
\example\subpage#any-page-name-here
, allowing Vue to retrieve data based on the content after the # and make requests to the API.
If anyone has any suggestions or solutions that can be implemented purely using Vue/JS/HTML without altering the hosting limitations, your assistance would be highly appreciated. Thank you!