The best way to deal with issues like this is referring to the manual.
http://httpd.apache.org/docs/1.3/mod/mod_expires.html#expiresactive
Syntax: ExpiresActive On|Off
Context: server config, virtual host, directory, .htaccess
Override: Indexes
Status: Extension
Module: mod_expires
Look at the Context and Override syntax rules. It’s OK to use ExpiresActive in an .htaccess file aslong as you AllowOverride Indexes
Related Posts:
- W3 Total Cache – Converting Apache rewrites to Nginx [closed]
- Difference between w3total cache disk enhanced and disk basic [closed]
- How does W3 Total Cache CDN URL rewrites work? [closed]
- Proper hook for W3TC defines, or dynamically disable w3 total cache [closed]
- Disable WordPress cache programmatically on a request [closed]
- Is W3 Total Cache still useful with CloudFlare? [closed]
- w3 total cache minification breaks wp_localize_script() [closed]
- W3 Total Cache, RackSpace Cloud Files, and Forcing Downloads [closed]
- Page cache for categories not updating with W3 Total Cache [closed]
- Exclude content from w3 total cache [closed]
- Need to create a function that will run regardless of W3TC PageCache for every page request [closed]
- W3 Total Cache active but not working [closed]
- Exclude certain block from caching using Fragment Caching – doesn’t work [closed]
- W3 Total Cache Minify Rewrite Error with WordPress on nginx [closed]
- How to cache custom pages using W3 Total Cache? [closed]
- Lighttpd, WordPress Caching plugin [closed]
- Showing as logged in after logout (W3 Total Cache issue) [closed]
- WP-e-Commerce and W3-Total-Cache integration problem [closed]
- Trouble with WordPress local development and deployments
- How to exclude a specific template from being cached by a CDN [closed]
- How do I get W3 Total Cache not to cache sidebars? [closed]
- Programmatically disable W3 Total Cache in development environment [closed]
- How can I use fragment caching to exclude certain plugins from being cached?
- How can I get W3 Total Cache to recognise Amazon ElastiCache? [closed]
- w3 Total Cache expire headers not set [closed]
- Transient API and caching Plugins
- How to handle is_user_logged_in() with w3 total cache [closed]
- How to hide W3 Total Cache from non admins?
- Can I flush W3TC’s cache in a capistrano deploy? [closed]
- Where is New Relic API key? [closed]
- Intercepting Before W3 Total Cache [closed]
- WordPress Leverage browser caching Show how to fix & Eliminate render-blocking JavaScript and CSS in above-the-fold content Show how to fix
- W3Total Cache problem with Nginx [closed]
- Enabling Cache on WP Membership Sites. Good OR Bad?
- Remove “?repeat=w3tc” from any url
- How we stop caching of particular div when i am using w3 total cache plugin? [closed]
- How can I output HTML in a template without it being passed through a caching filter? [closed]
- APC fragmention woes on Apache AWS EC2 Small instance with WordPress and W3TC [closed]
- Split Testing with W3 Cache Enabled? [closed]
- Exclude Random Redirect from caching?
- W3 Total Cache Minify + cforms II = POST /wp-content/plugins/cforms/lib_ajax.php 500 (Internal Server Error) [closed]
- Memory consumption in w3-total-cache vs wp-super-cache? [closed]
- How do I create a link in the WP admin bar that purges all caches (W3 Total Cache)?
- W3 Total Cache Error: some files appear to be missing or out of place. Please re-install plugin or remove
- Browser detection booleans mess. Caché plugin?
- Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN
- Pre-Caching and Googlebot
- When using W3 Total Cache should I remove my enqueues from functions.php [closed]
- WordPress cache login issue (w3 total cache) [closed]
- W3 Total Cache Can’t Really Detect Things
- W3 Total Cache + S3 + Cloudfront. [closed]
- W3 Total Cache Minification – Any way to not use php? [closed]
- W3 Total Cache benefits without using plugin? [closed]
- ssl_error_rx_record_too_long and Apache SSL [closed]
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- How can I use an .htaccess file in Nginx?
- Serving precompressed content with Brotli on Apache
- .htaccess redirect http to https
- How do I resolve a HTTP 414 “Request URI too long” error?
- XSLT-FO for-each
- 404 Not Found The requested URL was not found on this server
- Getting an error when I visit http://localhost
- What is the difference between Local Server and a Web Server?
- Error: NoClassDefFoundError: org/apache/commons/logging/LogFactory
- How to run php files on my computer
- Whats the point of running Laravel with the command ‘php artisan serve’?
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
- Localhost is not working
- How to enable mod_rewrite for Apache 2.2
- PHP $_SERVER[‘HTTP_HOST’] vs. $_SERVER[‘SERVER_NAME’], am I understanding the man pages correctly?
- Redirect vs RedirectMatch
- OSError – Errno 13 Permission denied
- How to automatically redirect HTTP to HTTPS on Apache servers?
- Xampp MySQL not starting – “Attempting to start MySQL service…”
- What is the difference between the ‘www’ folder and ‘htdocs’ folder?
- What is Options +FollowSymLinks?
- SVN Error E175002 while checking out code from repository
- XAMPP Apache won’t start
- XAMPP, Apache – Error: Apache shutdown unexpectedly
- SSL error SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- htaccess – Redirect to subfolder without changing browser URL
- Enable PHP Apache2
- client denied by server configuration
- What is HTTPD exactly?
- XAMPP: Connecting to localhost fix? [Persistent]
- Request exceeded the limit of 10 internal redirects due to probable configuration error
- MAMP “Apache couldn’t be started because port is in use.” AND “Can’t connect to local MySQL server through /tmp/mysql.sock
- HTTP Status 500 Error instantiating servlet class
- PHP and mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
- How do you redirect HTTPS to HTTP?
- Adding a user on .htpasswd
- Only variable references should be returned by reference – Codeigniter
- Connection reset by peer: mod_fcgid: error reading data from FastCGI server
- a2enmod command not found in apache server using cpanel in linux vps
- How do I disable directory browsing?
- file_get_contents( ) not working
- Apache and Node.js on the Same Server
- XAMPP, using port:81, cannot run localhost:81/mywebsite
- Apache is downloading php files instead of displaying them