htaccess: how to redirect all pages to a holding page

前端 未结 3 847
闹比i
闹比i 2021-01-06 04:57

I have to put a site down for about half an hour while we put a second server in place. Using .htaccess, how can I redirect ANY request to domain.com to d

3条回答
  •  误落风尘
    2021-01-06 05:12

    This works better...

    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{REQUEST_URI} !/holding_page.php$ 
    RewriteRule $ /holding_page.php [R=307,L]
    

提交回复
热议问题