Hi,
d I have just installed the latest wordpress for a friend, but he has found a problem with his vBulletin forums!
The problem is that, he used a hack/mod for vBulletin that replaced all vBulletins .gif's and replaced them with .png's. The hack is based on a .htaccess file in the forums images folder.
The .htaccess file contains:
ErrorDocument 404 /forums/images/404.php
and the 404.php file contains this:
<?php
/* ----------------------------------------------- *\
| Original Code by Link14716 @ vBulletin.org
| http://www.vbulletin.org/forum/showthread.php?p=1198854
| Released by Zachery
\* ----------------------------------------------- */
$requested = $_SERVER['REQUEST_URI'];
$extension = substr($requested, strlen($requested) - 3);
// If it's gif, make it png and yay for headers.
if ($extension == "gif") {
$redirect = substr_replace($requested, "png", strlen($requested) - 3);
header('Content-type: image/png');
header('Location: ' . $redirect);
exit;
}
Now I've spoken to my host and they say this
"This hack will not work in your configuration as any file that does not exist (which would cause a 404) will be handed to WordPress and managed by wordpress' 404 handler."
So edited my WordPress .htaccess file with this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Now this worked, but for some reason its stopped, now all the .png images are blank.
So can anyone help me solve this problem please?
Thanks
Danny