This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Publishing wordpress site through webserver protection strips every design, features and graphic display

I've created a wordpress site that's working fine on internal network. Through webserver protection I want publish it publicly and used the setup articles for that in teh knowledge based. Everything seems to work, except for one big problem: It is published and displayed in test only. All designs, featurs, headers, etc. are stripped. So it is unusable for the public.

Any ideas what can cause this? Must be something in the UTM, because on internal network the website is working and looking fine.



This thread was automatically locked due to age.
Parents
  • Maybe your website is with https? So the URL of the files/images may be wrong.

    When i was using wordpress with WAF , i had to edit the .htaccess file (apache webserver) to fix this.

    I had to edit the .htaccess file because of 2 things:

    -Wordpress cannot get the real IP of the user, it just get the IP of the Sophos WAF (in short: no analysing based on ip)

    -https wasn't working for some pages/files.

    Here is what i put in the .htaccess file:

    // Use X-Forwarded-For HTTP Header to Get Visitor's Real IP Address

    if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {

    $http_x_headers = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] );

    $_SERVER['REMOTE_ADDR'] = $http_x_headers[0];

    }

    // Important for HTTPS with Reverse Proxy (WAF) !!!!

    define('FORCE_SSL_ADMIN', true);

    if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')

    $_SERVER['HTTPS']='on';

  • Hi,

    Thanks. I tried this by putting the lines in the .htaccess file in the main website directory. After that I got an Internal Server 500 error.
Reply Children
No Data