• Resolved arash_hemmat

    (@arash_hemmat)


    Hi,
    I’ve been looking for a good redirect plugin and this plugin seems very detailed and does create seperate tables to store information which is good for performance. However it does not work on my site and i suspect that it is because my server has nginx installed instead of apache. Have you tested it on Nginx?

    https://ww.wp.xz.cn/plugins/seo-redirection/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter arash_hemmat

    (@arash_hemmat)

    I’ve investigated the problem and found out that the problem is not with the Nginx, the problem was that our website address begins with www however in WPSR_redirect function the method you used to get the current url is not compatible with websites having www in their address:

    Line 418 seo-redirection.php
    $permalink=$util->get_current_URL();

    which points at:
    Line 167 common/utils.php
    if (array_key_exists(‘HTTPS’,$_SERVER) && $_SERVER[‘HTTPS’] != ‘off’ && $_SERVER[‘HTTPS’] != ”)
    $sname = “https://” . $sname;
    else
    $sname = “http://” . $sname;

    This method creates addresses without www which causes the plugin not to work with my site.

    Anyway the get_current_URL function is too dumb and there are hundreds of better ways to get the current address correctly!
    I hope you have time to update it ASAP.

    Now I’m running this plugin on many site with NGINX & PHP5-FPM but didn’t have any problem. One problem it not work on HHVM.

    OK thanks a lot and I will make a core update for the plugin in the next 10 days.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem with NGINX’ is closed to new replies.