Why does the following file does not exist condition not work in htaccess? – Apache
Don't know why the following rewrite rules do not work. The file-not-exist condition always triggers even though the file article/1.html file does exist. The requested URL is: https://exampledomain.com/test-a-1.html RewriteCond %{REQUEST_FILENAME} ^(.*)-a-([0123456789_]*).html$ RewriteCond %{DOCUMENT_ROOT}/article/%2.html !-f [NC,OR] RewriteCond %{QUERY_STRING} !^$ RewriteRule ^(.*)-a-([0123456789_]*).html$…