Index.js file not loading

(please specify the website or account you are asking about)

I run into the Directory Listing

(please share the FULL error message you see)

Can someone help me fix this?

(other information and details relevant to your question)

The server will serve files marked as index.php or index.html as the index page, not index.js.

1 Like

How would I make it work then?

Try using this in your HTACCESS:

DirectoryIndex index.html index.php index.js index.css
1 Like

Chat script is forbidden


What kind of code is in your index.js file? Browsers can only use Javascript as part of HTML content. And our servers can’t run Javascript code (Node.js).


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.