apache_conf 从不同的Wordpress环境加载图像

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf 从不同的Wordpress环境加载图像相关的知识,希望对你有一定的参考价值。

# place above all other rewrite rules if using a CMS or program that redirects all request to index.php file (e.g. WordPress, Drupal, Laravel, etc...)
# if a file or directory does not exist on the local host, 302 redirect the request to the production host so the browser doesn't cache the file in case you replace the file locally

<IfModule mod_rewrite.c>
  RewriteEngine On
  # Redirect WordPress uploads
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule wp-content/uploads/(.*)$ http://REPLACEWITHYOURDOMAIN.COM/wp-content/uploads/$1 [R=302,L,NC]
</IfModule>

以上是关于apache_conf 从不同的Wordpress环境加载图像的主要内容,如果未能解决你的问题,请参考以下文章

apache_conf 从其他国家/地区允许Wordpress外部

apache_conf 从php执行保护wordpress上传目录。在uploads目录中添加新的.htaccess文件。

apache_conf WordPress的安全性

apache_conf Wordpress .htaccess

apache_conf wordpress htaccess

apache_conf WordPress安全