Can an htaccess could detect a browser if it’s javascript enable or disabled and write a certain condition if javascript is disbled?
Like this
if(js)
DirectoryIndex ../locnfo/jsenable.php
else
DirectoryIndex ../locnfo/jsdisable.php
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This has to be done on the client side, it cannot be detected elsewhere. The best thing I would suggest is to have something like
so the file is only included if Javascript is enabled.