L
L
Leopandro2018-03-06 03:53:48
htaccess
Leopandro, 2018-03-06 03:53:48

How to fix Object not found error?

I have this htaccess:

DirectoryIndex index.html
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

RewriteRule ^(?!dist/|api/).*$ dist/$0 [NC,L]

In general, all files are redirected to the dist folder, except for requests for url api. Problem in that that when you enter into url Let's say localhost/login that writes object not found. Although there is such a page

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question