Image attachments not showing in posts after server migration to LiteSpeed

After migrating my SMF 2.1.5 forum to a new host using LiteSpeed Web Server, users cannot see attached images in posts. The attachment icons appear, but clicking them gives a 404.

Environment:
• SMF: 2.1.5
• Server: LiteSpeed (cPanel), PHP 8.1
• Attachment Settings: Stored in database (default).

What I’ve checked:
1. File permissions for /attachments directory are 755.
2. attachmentUploadDir in Settings.php is correct.
3. LiteSpeed rewrite rules from .htaccess are active.

Specific question: Could LiteSpeed be blocking the dynamic attachment PHP script (index.php?action=dlattach)? Has anyone experienced this and found a specific LiteSpeed configuration rule to fix it?

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *