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

  1. corienb
    Posted 5 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]


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

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


  2. pepak.net
    Posted 5 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
    Posted 5 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..):


    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
    Posted 5 years ago #

    Try this
    It will work...

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

  5. corienb
    Posted 5 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
    Posted 5 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