WordPress.org

Ready to get started?Download WordPress

Forums

Download Monitor
Hack to get it working on nginx without rewrite rules (1 post)

  1. adammw
    Member
    Posted 3 years ago #

    Add the following code to the bottom of the main php file:

    function wp_dlm_request($input) {
    	if (!empty($input['name']) && $input['category_name'] == 'download') {
            $_GET['id'] = $input['name'];
            include('download.php');exit;
        }
        return $input;
    }
    add_filter('request','wp_dlm_request');

    It's ugly but it makes it work without fiddiling with rewrites (or at least it does for me). You might need to change the if if your using different permalinks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic