WordPress.org

Ready to get started?Download WordPress

Forums

Simple Download Monitor
.htaccess change creates 404 (6 posts)

  1. corienb
    Member
    Posted 3 years ago #

    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/

  2. pepak.net
    Member
    Posted 3 years ago #

    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.

  3. corienb
    Member
    Posted 3 years ago #

    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.

  4. Chetan Gole
    Member
    Posted 3 years ago #

    Try this
    It will work...

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

  5. corienb
    Member
    Posted 3 years ago #

    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..)

  6. DanClarkePro
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic