kerncy's solution to ".htaccess, default to full size image if thumbnail does not exist"

Hi,<\/p>\n\n

Depending on your apache version (>2.2 ?), you should add %{DOCUMENT_ROOT} to your condition. Please check https://www.harecoded.com/apache-rewritecond-f-check-file-exists-solution-2246468/<\/a> for a demo ans have a try.<\/p>\n

Hi, Depending on your apache version (>2.2 ?), you should add %{DOCUMENT_ROOT} to your condition. Please check https://www.harecoded.com/apache-rewritecond-f-check-file-exists-solution-2246468/ for a demo ans have a try. . EDIT : Sorry I tried my solution too quickly, "DOCUMENT_ROOT" part is not necessary. I read again your problem, and the issues seems to be a path issue. As you are in the "thumbs" directory your rewrite rule origin must be an absolute path beginning by "/" RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/wp-content/uploads/vehicles/thumbs/(.*)$ /wp-content/uploads/vehicles/$1 [L] If this doesn't work, you can try to set this .htaccess on the root folder of the server. For information, I removed the domain in the destination path as you are on the same server, it is not necessary to specify it.

User: kerncy

Question: .htaccess, default to full size image if thumbnail does not exist

Back to question