Murugan
Murugan

Reputation: 692

Plesk - Angular 8 Hosting

"404 Not Found" on all pages except start page."

First page only working. Remaining pages all 404 error

If I run below structure url is working. https://abcd.xyz

If I run below structure url is not working https://abcd.xyz/login

Upvotes: 0

Views: 232

Answers (2)

Osama
Osama

Reputation: 69

It's a bit late but if you're hosting your website on Linux you need to create a ".htaccess" file and paste inside it the following:

      <IfModule mod_rewrite.c>  
           RewriteEngine On             
           RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
           RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d    
           RewriteRule ^.*$ - [NC,L]
           RewriteRule ^(.*) index.html [NC,L]
       </IfModule>

Upvotes: 0

Sanjay Idpuganti
Sanjay Idpuganti

Reputation: 320

Try useHash property in RouterModule

Upvotes: 1

Related Questions