WordPress.org

Forums

[Plugin: Download Monitor] incorrect redirects (1 post)

  1. thepnerd
    Member
    Posted 2 years ago #

    I have been using Download Monitor for a long time. I don't know if this is a new issue, or one that I never noticed before.

    I can't seem to find any similar threads that solve my problem, so I ask your help.

    Today I uploaded a new file, which I only do occasionally, and I noticed that when I view the file in the browser (in this case it is a pdf file), the url is not displayed as I expect although the correct file is shown.

    WP and all plugins are up to date as of today.

    The url form download monitor is : http://www.site.com/downloads/filename.pdf

    But in the browser, this shows as:

    http://www.site.com/wordpress/wp-content/uploads/filename.pdf

    My expectation is that the browser would show it as:

    http://www.site.com/downloads/filename.pdf

    My wordpress is in a subdirectory (public_html/wordpress)

    My .htaccess in public_html is:

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    #RewriteRule ^downloads/([^/]+)$ http://www.site.com/wordpress/wp-content/plugins/download-monitor/download.php?id=$1 [L]

    RewriteRule ^downloads/([^/]+)$ /wordpress/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>

    # END WordPress

    Any ideas of how to have the correct (or expected) url display in the browser?

    Thanks everyone in advance!

Topic Closed

This topic has been closed to new replies.

About this Topic