Solved

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

Posted on 2011-02-15
3
437 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change password links 7 73
Form not operating correctly. 1 23
PHPStorm debugging issues 1 24
PHP - AJAX and MySQL it works only if the value is a number 12 36
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
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 Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

911 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now