Select Page

CompressX works seamlessly with most Apache servers. If you get a rewrite rules error, follow these steps to ensure the CompressX plugin functions properly:

Step 1: Connect to Apache

Establish an SSH connection to your website. You can do that using an SSH client like PuTTY.

Step 2: Access Configuration Directory

Use the following command to open the Apache configuration directory for your website. Make sure to replace example.com with your own domain:

nano /etc/apache2/sites-available/example.com.conf

Step 3: Set AllowOverride to All

  • Locate the line containing <Directory /var/www/> within the configuration file.
  • Find the directive AllowOverride None within this section.
  • Set AllowOverride None to AllowOverride All.
Apache configruation for CompressX

Apache configruation for CompressX

Step 4: Save and Close the File

  • Once you’ve made the change, save and exit the file using these key combinations:
    • Press Ctrl + X to exit the editor.
    • Type y and press Enter to confirm saving changes.

Step 5: Restart Apache Server

  • Execute this command to restart the Apache service:
service apache2 restart

Done. CompressX should now be working properly on your Apache server.

If you have any issues or questions, please feel free to contact us.