Hello all,
We have set the basic re-write rule in url rewrite option for our vuejs application.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule index.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>
==================
After reloading openlitespeed, the app is working without any issues. However, after another application build, the URL rewrite is reset and shows that the configuration file does not exist (please see the attached screenshot). The .htaccess file already exists in the application document root. But I can see that after each build, the .htaccess file is not automatically taken to the URL rewrite part.
I have removed the .htaccess file and added the re-write rule in the url redirection section and reloaded the openlitespeed. Then the issue was solved but however, the new .htaccess file wasn't created at the backed with the added rule. I think the .htaccess file is supposed to be created after the URL rewrite save, am I right?
I want to set this rewrite rule always for this application and it shouldn't disappear after each build. Can someone advice how to achieve it?