Htaccess redirect all in Wordpress?

Associate
Joined
5 May 2014
Posts
256
Location
Staffordshire
Hi guys,

Any idea how I could modify the htaccess file of a wordpress site to point every page to a temporary holding page?

When I add the standard way of doing it the main WP bit seems to get tripped up and the site doesn't work at all?
 
Soldato
Joined
16 Jun 2013
Posts
5,375
What are you using as the standard way? (Just remove the urls if you want but give us the code).

Or just copy the whole htacess removing identifying info.
 
Last edited:
Associate
OP
Joined
5 May 2014
Posts
256
Location
Staffordshire
I tried this, but it kills the page...

Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

RewriteCond %{REQUEST_URI} !^/goodbye$
RewriteRule ^(.*)$ http://www.website.com/ [R=307,L]
 
Soldato
Joined
16 Jun 2013
Posts
5,375
Just to clarify what you're trying to do;

You want to redirect the entire site to a static holding page whilst you develop the site?
 
Back
Top Bottom