Support » Plugin: Download Monitor » WPMU Compatible? Rewrite returns 404 page.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Try this rewrite rule. We had a similar problem and this fixed it:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^[_0-9a-zA-Z-]+/documents/([^/]+)$ /wp-content/plugins/download-monitor/download.php?id=$1 [L]

    Brandon, thanks for your generous fix. However, the result is the same.

    Any suggestions on how to troubleshoot this? I’ve commented the debug lines in download.php `/* Debug */
    echo “
    URL Parsed: $urlparsed\n
    isUrl: $isURI\n
    localURL: $localURI\n
    BloginfoURL: “.get_bloginfo(‘url’).”\n
    BloginfoWPURL: “.get_bloginfo(‘wpurl’).”\n
    ABSPATH: “.ABSPATH.”
    “;
    exit;/* */
    `

    Though I still get 404 error page without any print-out on screen of paths for debugging.

    David —

    Are you using subdomains for your multisite with domain mapping?

    Try this:

    RewriteEngine on
    RewriteRule ^documents/([^/]+)$ /wp-content/plugins/download-monitor/download.php?id=$1 [L]

    Brandon, yes sub-domains with mapping.

    This is what I have in .htaccess:

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^downloads/([^/]+)$ http://www.hrnerr.org/wp-content/plugins/download-monitor/download.php?id=$1 [L]
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    
    #END WordPress

    Here’s the page wit the downloads:

    Estuary Shorelines

    BTW – I recently upgraded to another server. Maybe there is some type of restriction on the new server config?

    Brandon, well…it was a basic folder permissions issue. I checked earlier and confirmed that the folders were 755 and files 644… but somehow the uploads and plugins folder were incorrect. So, as Confucius says, “… check the really simple things first, before insisting on making it complicated.” Or something like that. Thanks for your input.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WPMU Compatible? Rewrite returns 404 page.’ is closed to new replies.