Training

When: Every first Sunday of every month -get a ticket- from $15 (Click Here).

Friday, February 24, 2017

Nginx « WordPress Codex

Nginx « WordPress Codex



This guide is referring to a standalone Nginx setup, where it is used as the primary server instead of Apache.
It should be noted that Nginx is not a completely interchangeable
substitute for Apache. There are a few key differences affecting
WordPress implementation that you need to be aware of before you
proceed:



  • With Nginx there is no directory-level configuration file like
    Apache's .htaccess or IIS's web.config files. All configuration has to
    be done at the server level by an administrator, and WordPress cannot modify the configuration, like it can with Apache or IIS.
  • Pretty Permalinks functionality is slightly different when running Nginx.
  • Since Nginx does not have .htaccess-type capability and WordPress
    cannot automatically modify the server configuration for you, it cannot
    generate the rewrite rules for you.
  • Without modifications to your install, "index.php" will be to be
    added to your Permalinks. (There are ways to mitigate this with plugins
    (see below) and/or adding custom code to your child theme's
    functions.php.)
  • However, if you do want to have some (limited) .htaccess capability, it is technically possible to do add by installing the htscanner PECL extension for PHP. (However, this is not a perfect solution so be sure to test and debug thoroughly before using on a live site.)

No comments: