# Fixing 403 Error - OpenDocMan ## Issue Getting 403 Forbidden error when trying to access the login page. ## Solution Applied I've added URL rewriting rules to your `.htaccess` file to properly route requests through the `public/index.php` file, which is the main entry point for OpenDocMan. ## What Was Changed Added URL rewriting rules to `/home/u278597652/domains/aktwentyone.com/public_html/doc/.htaccess` that: - Allow direct access to files that exist - Route all other requests to `public/index.php` - Preserve the original URL structure ## Try These URLs Now 1. **Primary Login URL:** ``` https://doc.aktwentyone.com/ ``` 2. **Alternative:** ``` https://doc.aktwentyone.com/public/ ``` 3. **Direct Controller Access:** ``` https://doc.aktwentyone.com/public/index.php ``` ## If 403 Error Persists ### Option 1: Temporarily Disable .htaccess ```bash cd /home/u278597652/domains/aktwentyone.com/public_html/doc mv .htaccess .htaccess.backup ``` Then try accessing: `https://doc.aktwentyone.com/public/` ### Option 2: Check Web Server Configuration Your web server (Apache/Nginx) should be configured to: - Point to `/home/u278597652/domains/aktwentyone.com/public_html/doc/public/` as document root - OR allow `.htaccess` overrides (AllowOverride All) ### Option 3: Check Directory Permissions ```bash chmod 755 /home/u278597652/domains/aktwentyone.com/public_html/doc chmod 755 /home/u278597652/domains/aktwentyone.com/public_html/doc/public chmod 644 /home/u278597652/domains/aktwentyone.com/public_html/doc/public/index.php ``` ### Option 4: Check for Additional .htaccess Files There might be a `.htaccess` file in a parent directory blocking access. Check: ```bash ls -la /home/u278597652/domains/aktwentyone.com/public_html/.htaccess ``` ## Verify File Access Test if PHP files are accessible: ```bash php public/index.php ``` If this works, the issue is with web server configuration, not PHP. ## Contact Your Hosting Provider If none of the above works, contact your hosting provider and ask them to: 1. Verify the document root is set correctly 2. Check if `mod_rewrite` is enabled 3. Verify `AllowOverride All` is set for your directory 4. Check server error logs for specific 403 error details