WordPress.org

Ready to get started?Download WordPress

Ideas

Nginx support

  1. hollywoodgrind
    Member

    12345

    The problem is:

    When WordPress detects that FastCGI PHP SAPI is in use, it disregards the redirect status code passed to wp_redirect. Thus, all 301 redrects become 302 redirects which may not be good for SEO. The plugin overrides wp_redirect when it detects that nginx is used.

    When WordPress detects that mod_rewrite is not loaded (which is the case for nginx as it does not load any Apache modules) it falls back to PATHINFO permalinks in Permalink Settings page. nginx itself has built-in support for URL rewriting and does not need PATHINFO permalinks. Thus, when the plugin detects that nginx is used, it makes WordPress think that mod_rewrite is loaded and it is OK to use pretty permalinks.

    http://wordpress.org/extend/plugins/nginx-compatibility/

    The number of people using Nginx is growing rapidly. WordPress should have an option with a check box to choose which web server is serving WordPress, either Nginx or Apache, so that wp_redirect works properly.

    Posted: 4 years ago #
  2. dwkblog
    Member

    12345

    Yes I agree, much better can be use like that,

    example.com/postname.html

    Posted: 4 years ago #
  3. Jen Mylo
    Key Master

    We try to avoid adding unnecessary options. There's a plugin for Nginx support. http://wordpress.org/extend/plugins/nginx-compatibility/

    Posted: 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    8 Votes
  • Status

    This is plugin territory