Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 05-23-2011, 11:52 PM   #1
Warrior Member
 
Join Date: May 2010
Posts: 15
Thanks: 1
Thanked 1 Time in 1 Post
Default 301 Redirect Entire Site.

Hi, I want to redirect every page on my old site (Wordpress) to a single page on my new site (Wordpress), what is the best htaccess rule to use? I have found rules that permanentlty redirect the index page, but can't find a rule that redirects every page to a single page.

Any help would be greatly appreciated!
The Night Fox is offline   Reply With Quote
Old 05-24-2011, 12:00 AM   #2
Money Making Demon
 
banana1's Avatar
 
Join Date: May 2011
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: 301 Redirect Entire Site.

A 301 redirect should permanently redirect the whole site. Someone correct me if I'm wrong but I'm 99% sure that's how it works.
banana1 is offline   Reply With Quote
Old 05-24-2011, 12:03 AM   #3
Warrior Member
 
Join Date: May 2010
Posts: 15
Thanks: 1
Thanked 1 Time in 1 Post
Default Re: 301 Redirect Entire Site.

That was my understanding too, but I just implemented the following rule and it has only redirected my index page. I know this because if I go to myoldsite . com / Page I am able to view it.

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http : //w w w . newdomain . com/$1 [R=301,L]
Please ignore the spaces in the URL in the above code, I have too few posts to post a URL.
The Night Fox is offline   Reply With Quote
Old 05-24-2011, 01:58 AM   #4
Backlink Fanatic
War Room Member
 
chinmokuyuuki's Avatar
 
Join Date: Dec 2009
Location: BacklinkCenter
Posts: 65
Thanks: 6
Thanked 8 Times in 7 Posts
Default Re: 301 Redirect Entire Site.

Code:
RedirectMatch 301 ^/.+$ http://www.example.com/

Get Quality Backlinks for a Low Price! - BacklinkCenter.net Your one stop shop for backlinks. Over 400 Forum Profile Links / 130 Blog Comments for €1,- !
chinmokuyuuki is offline   Reply With Quote
Old 05-24-2011, 02:01 AM   #5
Warrior Member
 
Join Date: May 2010
Posts: 15
Thanks: 1
Thanked 1 Time in 1 Post
Default Re: 301 Redirect Entire Site.

Do I replace my code with that or do I add it to the code? You'll have to forgive me, I'm not too familiar with htaccess!
The Night Fox is offline   Reply With Quote
Old 05-24-2011, 02:04 AM   #6
Backlink Fanatic
War Room Member
 
chinmokuyuuki's Avatar
 
Join Date: Dec 2009
Location: BacklinkCenter
Posts: 65
Thanks: 6
Thanked 8 Times in 7 Posts
Default Re: 301 Redirect Entire Site.

The above will permanently redirect all pages on the current website to the website specified. You won't need other code.
If for whatever reason it doesn't work you can try to remove then '301' as it isn't necessary to supply that argument.

Get Quality Backlinks for a Low Price! - BacklinkCenter.net Your one stop shop for backlinks. Over 400 Forum Profile Links / 130 Blog Comments for €1,- !
chinmokuyuuki is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum

Tags
301, entire, redirect, site

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 07:32 AM.