[英]Using .htaccess to redirect all pages on wordpress to homepages except page with .html
[英]Using .htaccess to redirect all pages except three
我将网站永久脱机,但我在它上面显示一个启动页面一两个星期才会关闭。 如何编辑我的.htaccess文件以显示该启动页面? 它需要允许页面本身(根目录)以及/ images目录中的两个图像。
将以下配置放入位于您网站根目录的.htaccess
中:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/splash.html$
RewriteCond %{REQUEST_URI} !^/images/usedimage.png$
RewriteCond %{REQUEST_URI} !^/images/anotherusedimage.png$
RewriteRule .* /splash.html [R=301,L]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.