Internal Server Error on AngularJS website page refresh

Hi,

My website nextdrive.000webhostapp.com is built using AngularJS.
In page refresh/reload it returns an Internal Server Error as follows;

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
etc etc.

This is my .ataccess file content
# HTID:3638698: DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES BELOW
php_value display_errors 1
# DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES ABOVE HTID:3638698:

<IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine On

    # Don't rewrite files or directories
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d

    RewriteRule ^ - [L]

    RewriteRule (.*) /nextdrive/ [L]
</IfModule>

Can someone please advise on this?

Regards.

I do not think we support AngularJS :slight_smile:

You mean on your free hosting only or both free and commercial hosting?

1 Like

You can ask Hostinger support to see if they support it using the demo panel
premium.000webhost.ml

Thanks @ckhawand for your quick responses.

1 Like

I have some second thoughts.

My backend is written in PHP. Only the frontend is written in AngularJS. So what do you mean by not supporting AngularJS in frontend?

Hi @nextdrive

We are really sorry. I think my colleague Chist got it wrong.

We completely support any Js library, all the latest php versions, htaccess, upto mysql 5.6

However your website works fine. Can you screenshot your issue?

Hi @Supun,

This is my homepage, which is redirected from www.nextdrive.000webhostapp.com to www.nextdrive.000webhostap.com/login


But if you refresh or try to go to link www.nextdrive.000webhostap.com/login directly it will show up this error.


But this is working fine in localhost (wamp)

First of all is it www.nextdrive or nextdrive?

I think it’s nextdrive. However, I can’t see any login.php in your file manager? :confused:

Oops, sorry. :no_mouth: its

https://nextdrive.000webhostapp.com/

Nope. There is only an index.php file and others are loaded through AngularJS routing. This happens through the app.js file and it is mentioned in the index.php file