.htaccess - how to create redirects in apache2 htaccess basing on status code -


i know how create redirects in htaccess status codes except errors (404,503,etc.) , serve specific file test.txt

this trying not work. @ moment trying 503 status code

rewriteengine on

rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond %{request_uri} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [nc] rewriterule (.+) index.php?p=$1 [qsa,l]  redirect 503 /test.txt ??? errordocument 503 /test.txt ??? 


Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

javascript - How to change image src on success AJAX -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -