thepnerd
Forum Replies Created
-
Forum: Plugins
In reply to: [Download Monitor] PermalinksSame issue here. See below for more details. Thanks for any assistance!
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 : https://www.site.com/downloads/filename.pdf
But in the browser, this shows as:
https://www.site.com/wordpress/wp-content/uploads/filename.pdf
My expectation is that the browser would show it as:
https://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/([^/]+)$ https://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!