Answer the question
In order to leave comments, you need to log in
How to set up apache for SPA?
Good afternoon.
There is a Single Page App on VUE JS with routing on the client.
The Apache settings in the .htaccess file look like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
Answer the question
In order to leave comments, you need to log in
You called me as an Apache specialist, but I'm not like that.
I can only give a solution for nginx:
location / {
index index.html;
try_files $uri /index.html$is_args$args;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question