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?
 
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:
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]
 
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?
 
Yeah, in a nutshell the company is shutting shop so I've done a goodbye page, and want every page that will show up in the search engines just pointing to the one place...
 
Back
Top Bottom