apache_conf 将所有Wordpress重定向到维护页面 - Office IP和资产除外
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf 将所有Wordpress重定向到维护页面 - Office IP和资产除外相关的知识,希望对你有一定的参考价值。
Options +FollowSymlinks
RewriteEngine On
# Office IP Address #
RewriteCond %{REMOTE_ADDR} !^(1\.1\.1\.1)
# File to Redirect #
RewriteCond %{REQUEST_URI} !/main.html$ [NC]
# Exclude Assets #
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif|css|js|ico|woff|tff|otf|eot) [NC]
# File to Redirect #
RewriteRule .* /main.html [R=302,L]
# Start Wordpress #
以上是关于apache_conf 将所有Wordpress重定向到维护页面 - Office IP和资产除外的主要内容,如果未能解决你的问题,请参考以下文章
将 wordpress 从域迁移到另一个域 - 但 URL 仍重定向到旧域
我所有的 WordPress 页面都重定向到 Xampp 的主页
使用 nginx 上游的 Wordpress 常量重定向
重定向子目录中的所有内容,但不重定向子目录本身
WordPress 链接全部重定向到双 URL
我所有的个人 wordpress 页面都重定向到 xampp 默认页面