nginx rewrite not working
-
Hi, I followed (I think) the nginx rewrite settings and it’s still not working. It’s for a company intranet on a server that hosts a couple other sites. The lite version seems to be v2.8.4 and I’ve tried both: rewrite wp-content/uploads/(.+)(\.)([A-Za-z0-9]+)$ "/index.php?pre_dir_acc_61co625547=$1&is_direct_access=true&file_type=$3" last; rewrite private/([a-zA-Z0-9-_]+)$ "/index.php?pre_dir_acc_61co625547=$1&custom_181191=$2" last; and? rewrite subdomain.domain.com/wp-content/uploads/(.+)(\.)([A-Za-z0-9]+)$ "/index.php?pre_dir_acc_61co625547=$1&is_direct_access=true&file_type=$3" last; rewrite subdomain.domain/private/([a-zA-Z0-9-_]+)$ "/index.php?pre_dir_acc_61co625547=$1&custom_181191=$2" last; in both the intranet subdomain and default config files. Per the instructions, I put the above code inside the server block but outside all the location blocks. I could be that regex just makes my head hurt but I couldn’t find a way to make the page load correctly at all. When the plugin is activated, users cannot use the site and just get a "Nothing Found" message. Thanks, Jeff
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘nginx rewrite not working’ is closed to new replies.