as title says I am looking for a PHP function to check if you can use .htaccess file on your server.
What should I test for ?
Option 1:
Maybe if mod_rewrite module is installed ?
Option 2:
Check out if “AllowOverride None” presented in ‘httpd.conf‘.
Thank you for your suggestions, code will help too 😉
Create a .htaccess file with your php script, write a redirect into it for some file, and then call the file and check if it’s redirected. Should be one of the most basic ways to check if .htaccess works.
Edit: Not tested