Jump to content

php cpanel issue


giorgi

Recommended Posts

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.