apache_conf 如果从开发站点丢失,请抓取实时站点文件 - htaccess

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf 如果从开发站点丢失,请抓取实时站点文件 - htaccess相关的知识,希望对你有一定的参考价值。

# https://stevegrunwell.github.io/wordpress-git/#/13

<IfModule mod_rewrite.c>
  RewriteEngine on

  # Attempt to load files from production if
  # they're not in our local version
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule wp-content/uploads/(.*) \
    http://{PROD}/wp-content/uploads/$1 [NC,L]
</IfModule>

# WHAT DOES IT DO?
# Does the requested file exist in the local filesystem?
#	YES: Load it as we normally would
#	NO: Attempt to load the file from production

以上是关于apache_conf 如果从开发站点丢失,请抓取实时站点文件 - htaccess的主要内容,如果未能解决你的问题,请参考以下文章