• Hi there,

    I have lots of websites, so I disabled htacess to decrease server load. All my htaccess rules went to .conf files in /etc/apache2 folder. How do I properly add expert apache rules of WP super cache there?

    Thanks for your help in advance!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • You should probably just write them to the .htaccess file through the plugin. The advanced settings page will display those rules, or you can copy them from the .htaccess file into your conf files.

    Thread Starter SamTyurenkov

    (@samtyurenkov)

    Donncha,

    Thanks for the fast response. Does the order matter? Plugin proposes to add two sets of rules, one in root .htaccess, another set in cache folder htaccess. So I just add both sets of rules before the wordpress rules, or after?

    Also I use varnish and it’s written there if you use proxy:
    #If you serve pages from behind a proxy you may want to change 'RewriteCond %{HTTPS} on' to something more sensible

    I’m not sure what exactly should I change. In ssl.conf I use rules like that:

    ProxyPreserveHost On
    ProxyPass / https://127.0.0.1:80/
    ProxyPassReverse / https://127.0.0.1:80/
    RequestHeader set X-Forwarded-Port "443"
    RequestHeader set X-Forwarded-Proto "https"
    • This reply was modified 7 years, 3 months ago by SamTyurenkov.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add expert apache rules directly to sites-available conf’ is closed to new replies.