Support » Plugin: Simple Download Monitor » [Plugin: Simple Download Monitor] .htaccess change creates 404

  • I got this plugin working fine on an all WordPress site, but when I change the .htaccess file on a site that’s part HTML/CSS and part WordPress it creates a 404 error.

    Any solutions? I’d love to track my downloads there as well 🙂

    I tried

    RewriteRule ^(pdf/.*) /index.php?sdmon=$1 [L]

    and

    RewriteRule ^(pdf/.*) /*?sdmon=$1 [L]

    Neither work, as soon as I delete the rule out of the .htaccess file everything is working fine again.

    http://wordpress.org/extend/plugins/simple-download-monitor/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The plugin rather depends on having a working WordPress installation. If you are getting a 404, it looks like your WordPress is either missing or incomplete.

    Thanks for the quick reply (and the plugin)!

    But my WordPress installation seems to be working fine (I haven’t yet bothered to change much beyond the standard theme..):

    http://www.10milesfromnowhere.nl/blog/

    Could the problem be that the downloaded files are not in (child of) the /blog/ directory? So they’re from index.html and not blog/index.php ?

    As soon as I change the .htaccess and click on a PDF link on the ‘main’ site, it says “doesn’t exist on server, 404 ” , when I delete the rule from htaccess, the PDF links work again.

    Try this
    It will work…

    RewriteRule ^(pdf/.*) /blog/index.php?sdmon=$1 [L]

    Thank you for the suggestion.

    Unfortunately, that doesn’t work either.
    (When I click on a PDF link with that rule in the htaccess, I get a 404 error – when I remove the line, the PDF loads again..)

    What’s the URL that is returned? (If you’re still having this issue)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Simple Download Monitor] .htaccess change creates 404’ is closed to new replies.