• Resolved avskum

    (@avskum)


    Hello,

    I have external PDF in this plugin, but there is problem, I am getting 403 error, even there is 775 on plugin folder and www-data on whole WP project, I am using nginx.

    In .htaccess I have this lanes.

    # BEGIN Download-Monitor
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^downloads/([^/]+)$ /var/www/vhosts/web.com/wp-content/plugins/download-monitor/download.php?id=$1 [L]
    # END Download-Monitor
    
    RewriteEngine off
    #<IfModule mod_suphp.c>
    #       suPHP_ConfigPath /home/**yourhostingusername**/public_html/**yourdomain**/php.ini
    #       <Files php.ini>
    #               order allow,deny
    #               deny from all
    #       </Files>
    #</IfModule>
    
    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    RewriteRule ^downloads/([^/]+)$ https://web.com/wp-content/plugins/download-monitor/download.php?id=$1 [L]
    </IfModule>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    https://www.ads-software.com/plugins/download-monitor/

Viewing 1 replies (of 1 total)
  • Hey there,

    If you’re using nginx, your .htaccess will not be used because this is an Apache file. I’m fairly sure your 403 error is caused by a miss-configuration in nginx, possibly your not accepting this filetype in nginx yet. Unfortunately nginx configuration is beyond what we can support you with, I suggest you contact your host to see if they can help you solve this issue.

    Kind Regards,
    Barry Kooij

Viewing 1 replies (of 1 total)
  • The topic ‘403 error’ is closed to new replies.