Using .htaccess authetication in a non directory environment

Posted October 22, 2017 691 views

Ive written an html (CSS) front end with a lot of JS to generate pages on an embedded controller that has an apache server.
I want to use the .htaccess authorisation to control access to various pages, but as it is all JS generated I’m not sure how to implement it. I know normally you would just create a htaccess in each directory, but this time, no directories.
Can someone guide me as to how to use the authentication system inside my JS?
PS - i’m pretty new to all this type of coding, although not new to coding in general.

0 answers
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!