If you see a “403 Forbidden” or “You don’t have permission to access this resource” error after uploading your landing page files, the issue is usually related to your server’s .htaccess configuration or directory permissions.
Cause 1: Apache RewriteEngine Compatibility
Our landing pages include an .htaccess file that uses Apache’s mod_rewrite module to handle clean URLs and route requests to the correct files. Different Apache versions handle rewrite rules differently, and a mismatch can trigger a 403 error.
How to fix
- Connect to your server via File Manager or an FTP client.
- Navigate to your landing page directory and open the .htaccess file.
- Look for the RewriteBase directive. If your landing page is in the root directory, it should be set to /. If it is inside a subfolder, it should match that path (e.g. /campaign/).
- If the file contains rewrite rules that reference Apache 2.2 syntax (such as Order Allow,Deny), and your server runs Apache 2.4 or higher, replace them with the updated syntax:
Apache 2.2 (old):
Order Allow,Deny
Allow from all
Apache 2.4+ (new):
Require all granted
Save the file and reload your landing page in the browser.
Cause 2: Directory Permissions
Your hosting server may block access if the file or directory permissions are set incorrectly. On Linux-based servers, the recommended permissions are:
- Directories: 755
- Files: 644
You can check and update permissions through your hosting panel’s File Manager or via FTP. If you are unsure how to change permissions, contact your hosting provider for assistance.
Cause 3: ModSecurity or Server Firewall
Some hosting providers run ModSecurity or similar firewall rules that may block certain requests and return a 403 error. This is more common on shared hosting where security rules are applied globally.
If you have verified that your .htaccess file and permissions are correct but still see the error, contact your hosting provider and ask them to check the server error log for your domain. The log will show the exact rule that is blocking the request, and they can whitelist it for your account.
Cause 4: Missing Index File
If you are trying to access a directory that does not contain an index.php or index.html file, Apache will return a 403 error by default instead of listing the directory contents. Make sure all landing page files were extracted correctly and the index.php file is present in the root of your landing page directory.
For help with uploading files, refer to our guide on uploading landing page files.
Related Articles
Need more help?
If this article didn't answer your question, submit a support ticket.
Log In to Submit a Ticket