We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15114
    • 102 Posts
    Hi

    I have installed FileDownload 2.6 and FileDownloadPlugin 1.2 .
    I have also installed AnythingRating 1.0

    I have edited the .htaccess file (the one in the modx’s root directory) as follow to use friendly url.

    ...
    
    # For Friendly URLs
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*\.html)(\/)(.+)$ $1?d=$3 [L,NC]
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    
    ...
    


    All seems to work correctly when I load a page or download a file.
    But AnythingRating doesn’t work, it display a 404 error (you can try here : http://v2.astroip.org/le-coin-de-la-technique.html). I think that come from the line I have added in the .htaccess file (RewriteRule ^(.*\.html)(\/)(.+)$ $1?d=$3 [L,NC]), if I remove it AnythingRating works correctly. But I don’t understand why, the regex dosen’t match the request used by AnythingRating (index-ajax.php).


      • 15114
      • 102 Posts
      Nobody ?