Assuming your configuration has AllowOverrides with .htaccess, you must enable mod_env in Apache for this to work.
More Related Contents:
- Using .htaccess to make all .html pages to run as .php files?
- deny direct access to a folder and file by htaccess
- Server not parsing .html as PHP
- Seo Friendly URL results in CSS IMG and JS not working
- Htaccess: add/remove trailing slash from URL
- URL rewriting : css, js, and images not loading
- Disable PHP in directory (including all sub-directories) with .htaccess
- No input file specified
- Why is my $_ENV empty?
- Pretty URLs with .htaccess
- enable cors in .htaccess
- Yii2 htaccess – How to hide frontend/web and backend/web COMPLETELY
- Is it possible to redirect post data?
- Setting environment variables for accessing in PHP when using Apache
- .htaccess issues: No input file specified
- Getting a 500 Internal Server Error (require() failed opening required path) on Laravel 5+ Ubuntu 14.04
- Leverage browser caching for 3rd party JS
- How to get system environment variables into PHP while running CLI & Apache2Handler?
- When setting environment variables in Apache RewriteRule directives, what causes the variable name to be prefixed with “REDIRECT_”?
- Changing the root folder via .htaccess
- How to set global environment variables for PHP
- Using PHP/Apache to restrict access to static files (html, css, img, etc)
- How to enable gzip?
- Deny ajax file access using htaccess
- $PATH environment variable for apache2 on mac
- How to create clean url using .htaccess
- Permission denied: /var/www/abc/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable?
- Request exceeded the limit of 10 internal redirects
- .htaccess Redirect non-WWW to WWW preserving URI string
- .htaccess – Redirect subdomain to folder