godaddy server | .htaccess: file not found error | angular project host error | browser refress page not found error while localhost working properly
on doing browser refresh or navigation Page Error
step1: Login to cpanel and go in file management root directory ./public_html
step2: create .htaccess file
step3: past the below code on there
RewriteEngine On
RewriteBase //
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . //index.html [L]
wrong code below need to delete from tehere
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
DirectoryIndex index.php
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Comments
Post a Comment