I deleted some files a few weeks ago and one of them seems to have corrupted. It no longer shows in the media browser. When you go to access the old link to the file in an external browser, it comes up with the 403 forbidden file message. I can’t access this file any more as its been deleted. I don’t want it back but the redirector won’t work. Any ideas?
Did you check (for example with FTP) if this PDF-file still exists in the folder assets/uploads/
?
Not sure what you exactly mean by that.
With the default .htaccess
file
...
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
MODX only runs (RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
) if the requested file doesn’t exist on the disk (RewriteCond %{REQUEST_FILENAME} !-f
).
When the 403 forbidden message is displayed, it doesn’t seem that MODX runs at all.
Hi, thanks for replying. The PDF file doesn’t exist anymore in the assets/uploads folder which is why I am at a loss of what to do. Any help would be appreciated. Thanks.
As MODX doesn’t seem to be involved in the request that returns the 403 forbidden message, I don’t think there is anything that can be done in MODX.
Maybe your hosting provider uses an intermediary cache and there is an inconsistency between this cache and the folder on the server.
Thanks Harry. I appreciate the advice.