That is not possible. You need to have a ErrorDocument
directive for each status code you want to handle differently than with the default error handler.
Related Contents:
- htaccess redirect to https://www
- Tips for debugging .htaccess rewrite rules
- Reference: mod_rewrite, URL rewriting and “pretty links” explained
- Remove .php extension with .htaccess
- How to debug .htaccess RewriteRule not working
- Hidden features of mod_rewrite
- Do you have to restart apache to make re-write rules in the .htaccess take effect?
- Forbidden You don’t have permission to access / on this server [closed]
- What does RewriteBase do and how to use it?
- htaccess remove index.php from url
- Multiple RewriteRules for single RewriteCond in .htaccess
- How can I use an .htaccess file in Nginx?
- How to enable mod_rewrite for Apache 2.2
- .htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
- How do I disable directory browsing?
- apache redirect from non www to www
- How to debug Apache mod_rewrite
- How to Set AllowOverride all
- .htaccess ErrorDocument 404 not showing up
- Apache: client denied by server configuration
- How to prevent http file caching in Apache httpd (MAMP)
- deny direct access to a folder and file by htaccess
- .htaccess redirect http to https
- deny directory listing with htaccess
- Getting a 500 Internal Server Error (require() failed opening required path) on Laravel 5+ Ubuntu 14.04
- Adding comments to .htaccess
- Htaccess: add/remove trailing slash from URL
- How to force https on elastic beanstalk?
- .htaccess rewrite subdomain to directory
- htaccess exclude one url from Basic Auth
- Https to http redirect using htaccess
- Redirect site with .htaccess but exclude one folder
- How do I ignore a directory in mod_rewrite?
- Mac OS X doesn’t allow to name files starting with a dot. How do I name the .htaccess file?
- How to prevent a file from direct URL Access?
- .htaccess/.htpasswd 500 Internal Server Error
- Rewrite rule if condition is not matched
- Apache: difference between “Header always set” and “Header set”?
- How can I get Apache gzip compression to work?
- apache HTTP:X-Forwarded-Proto in .htaccess is causing redirect loop in dev environment
- mod_rewrite urlencoding an already urlencoded query string parameter – any way to disable this?
- htaccess deny from all
- How to increase apache timeout directive in .htaccess?
- htaccess redirect all pages to single page
- Removing the .php extension with mod_rewrite
- What do the option FollowSymLinks and Indexes in .htaccess? [closed]
- Can ProxyPass and ProxyPassReverse work in htaccess?
- htaccess 301 redirect – Remove query string (QSA)
- apache mod_rewrite is not working or not enabled
- Redirect all traffic to root of another domain