I have a vue project, it transfers all request to index.html
, but if i refresh page, server can't find route, so in Nginx
I config
location /admin { try_files $uri $uri/ @routeradmin;index index.html index.html;}
location @routeradmin { rewrite ^.*$ /admin/index.html last; }
to transfer request to index.html
Now I need do same with Apache httpd server
, how to write config?
How to config in apache?