Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
css issues with IE 11 8 34
Full width video doesn't shrink on mobile- wordpress, divi 8 46
mysqli insert query problems 4 22
AdminLTE with wordpress 15 54
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
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…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

776 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