Solved

Best/easiest way to redirect all WordPress content to a single page

Posted on 2011-02-15
3
454 Views
Last Modified: 2012-05-11
Hi folks,

I'm running a WordPress site which is taking registration for an event and the organizers are postponing the event indefinitely.  I need an easy way to get all of the content (about 30 pages and posts) to redirect to a single page.  

Any suggestions?
0
Comment
Question by:Jason C. Levine
3 Comments
 
LVL 16

Accepted Solution

by:
sjklein42 earned 350 total points
ID: 34903728
You could use a RewriteRule in your Apache config.

Either of these should redirect all pages to new page.  The difference is whether the user sees the new (redirected) address in their browser address field or not.

RewriteRule ^.*$ new.html
RewriteRule ^.*$ new.html [R]
 

Open in new window

0
 
LVL 12

Assisted Solution

by:mwochnick
mwochnick earned 149 total points
ID: 34903738
if you host your own site on apache you could add a mod_rewrite rule that would do it -
Here's a link to the rewrite guide
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

rewrite syntax can be tricky so - this may not be as easy as using a wordpress plugin like
http://wordpress.org/extend/plugins/redirection/
0
 
LVL 70

Author Comment

by:Jason C. Levine
ID: 34904045
Yeah, I know I can do this with mod-rewrite but I was really looking for a cheap and easy way so I can recommend it to people who host WP sites who may not have access to someone who can do .htaccess-fu.

The plugin looks interesting, though.

Any other suggestions?
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
This article discusses four methods for overlaying images in a container on a web page
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question