fbpx

Special Offer
Save up to 20%
on any purchase
Grab the Deal

Configuring NGINX server for HelpGent

WordPress is designed with the assumption that the underlying server supports .htaccess capabilities. As NGINX doesn’t natively support this feature, WordPress faces challenges in automatically adjusting server configurations. This limitation becomes apparent when attempting to set up URL redirects or rewrite rules, requiring manual intervention. To address the challenge of manually configuring NGINX for HelpGent rewrite rules, follow these step-by-step instructions:

  1. Copy the Rewrite Rule: Copy the following rewrite rule:

    rewrite wp-content/uploads/helpgent/([A-Za-z0-9_@.\/&+-]+)+.([A-Za-z0-9_@.\/&+-]+)$ "/index.php?helpgent_media_protection=$1&file_type=$2" last;

  2. Locate Your NGINX Config File: Find your NGINX configuration file, which is typically located at

    /etc/nginx/sites-available.

    If you’re using Arch Linux, the path might be

    /etc/nginx/conf/sites-available.

  3. Paste the Rewrite Rule Inside the Server Block: Open your NGINX configuration file using a text editor. Inside the server block, paste the rewrite rule that you copied in step 1. After that, it should look something like this:

Note: This is an example of the HelpGent rule only. Do not replace your server block, just add a new rule for HelpGent.