Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Customizing themes 14 47
Modify PHP Code on the Fly? 8 43
LINUX CENTOS + APACHE 9 37
SQL inner join confusion 15 22
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…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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. …
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

747 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

11 Experts available now in Live!

Get 1:1 Help Now