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]
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- What is the difference between Local Server and a Web Server?
- OSError – Errno 13 Permission denied
- Xampp MySQL not starting – “Attempting to start MySQL service…”
- Enable PHP Apache2
- MAMP “Apache couldn’t be started because port is in use.” AND “Can’t connect to local MySQL server through /tmp/mysql.sock
- PHP and mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
- httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
- Https to http redirect using htaccess
- Trouble with Transient API when W3TC is activated [closed]
- authentication issue with rest api – rest_cannot_create
- WordPress site redirects to different wordpress domain on the same server after reuploading db backup
- Using separate Apache log files for multisite
- W3 Total Cache doesn’t detect memcached [closed]
- What are some good Apache settings to use with wordpress?
- 404 with post name permalinks
- How to disable W3 Total Cache “Performance” menu under multisite? [closed]
- W3 Total cache “empty all caches” and no stylesheets render [closed]
- Getting WPTouch and W3 Total Cache to Work Together [closed]
- Directing subdomain to main domain and keeping the subdomain format with .htaccess
- 301-redirect directives for blogger to wordpress migration
- Posting and image insertion problems after EasyApache4 and PHP 7 upgrade
- How to configure sub-domain for images on Debian Apache VPS?
- “Database Connection Error” upon install in Apache VirtualHost document root.. Why did this happen? [closed]
- How to redirect a link to a new link?
- Website pagespeed problem
- Internal Server Error apache
- W3 Cache redirects to front page when I press purge all caches
- fix 302 redirection error on https
- Caching plugins + mod_pagespeed = overkill?
- Virtual HostX and MAMP not working with WordPress
- Plugins & backup not working correctly on new Digital Ocean server
- how to set up wp in folder within static website?
- Page comes up blank using w3 total cache [closed]
- How to enable %postname% permalinks on Mac?
- Configure .htaccess to have a WordPress single site installation with all subdomains pointing to the same pages?
- Language does not switch while cache is enabled
- URL Rewrite 404
- Custom Permlinks work, regular page permalinks don’t
- w3 total cache uninstall remove cache
- All scripts and style links return 404 on a local virtualhost
- Typing local WordPress URL works, but clicking the same link does not
- W3 Total Cache and IIS7 not doing much [closed]
- nginx + W3 Total Cache: rewrite rules issue [closed]
- CHMOD 0777, but WordPress still not able to write files/folders [closed]
- Settings > Permalinks – mod_rewrite ineffective if expression not preceded by /index.php/
- How To Add CSP frame ancestors in WordPress Website? [closed]