giorgi Posted August 28 Share Posted August 28 hello i have issue about my php and vue js project. when i have this .htaccess file configurations : RewriteEngine On # Deliver the folder or file directly if it exists on the server RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f # Redirect every request to index.php RewriteRule ^ index.php [L] database connection is ok also not cors error at all but when i reload /add-product page it gives me 404 error when i searched this issue i fixed it with this .htaccess file configurations : <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> page reloading fixed but now i am getting cors error how can i fix it what can be issue? Quote Link to comment Share on other sites More sharing options...
requinix Posted August 28 Share Posted August 28 URL rewriting has nothing to do with CORS. What error are you getting? Are you using different domains for some files? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.