Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 28th Jan 2011, 04:12 PM   #1
David Murray
 
Join Date: 2006
Location: Eden Valley, Cumbria, United Kingdom.
Posts: 13
Thanks: 8
Thanked 2 Times in 2 Posts
Default
301 redirect on Wordpress
Share on: 
fb share twitter share gplus share more share

Hi,
I've had a Wordpress blog in subdirectory /blog/ for some time but now want to move it into the root directory. I've worked out how to use 301 if I were moving it to an entirely different domain, but simply moving back a level on the same domain is defeating me. Can anyone suggest how? I should say that there are around 100 posts so I don't want to have to set up individual redirects for each one.
Thanks,
- David -

- David Murray -
Cumbria, England
http://admastery.biz
http://around-england.co.uk
djmurray is offline  
Unread 28th Jan 2011, 05:35 PM   #2
Active Warrior
War Room Member
 
Join Date: 2010
Posts: 97
Thanks: 2
Thanked 2 Times in 2 Posts
Default
Re: 301 redirect on Wordpress
Share on: 
fb share twitter share gplus share more share

Not entirely sure, but I think an .htaccess rule would take care of this problem just fine.
twmaffun is offline  
Unread 28th Jan 2011, 05:47 PM   #3
Active Warrior
 
Join Date: 2010
Posts: 52
Thanks: 11
Thanked 11 Times in 9 Posts
Default
Re: 301 redirect on Wordpress
Share on: 
fb share twitter share gplus share more share

Just remember in your .htaccess file that you need to include the FULL url in your redirect, even if it is the same domain. As I don't have enough posts to be able to submit links here I'm not allowed to post anything that looks like a link, but basically it is:

Redirect 301 /blog <your full domain url>
Scoop is offline  
Unread 28th Jan 2011, 06:37 PM   #4
Active Warrior
War Room Member
 
shinepuppy's Avatar
 
Join Date: 2009
Location: Texas
Posts: 46
Thanks: 1
Thanked 9 Times in 8 Posts
Default
Re: 301 redirect on Wordpress
Share on: 
fb share twitter share gplus share more share

Hey David,
I did this exact thing with one of my blogs. You can use this plugin to redirect your visitors:

WordPress › Dean's Permalinks Migration « WordPress Plugins

You just input your old permalinks structure in the settings. For me it was:

Code:
/blog/%year%/%monthnum%/%postname%/

good luck

-jason

shinepuppy is offline  
The Following User Says Thank You to shinepuppy For This Useful Post:
Unread 28th Jan 2011, 08:48 PM   #5
Active Warrior
War Room Member
 
Join Date: 2010
Posts: 97
Thanks: 2
Thanked 2 Times in 2 Posts
Default
Re: 301 redirect on Wordpress
Share on: 
fb share twitter share gplus share more share

Originally Posted by shinepuppy View Post

Hey David,
I did this exact thing with one of my blogs. You can use this plugin to redirect your visitors:

WordPress › Dean's Permalinks Migration « WordPress Plugins

You just input your old permalinks structure in the settings. For me it was:

Code:
/blog/%year%/%monthnum%/%postname%/

good luck

-jason
Ah, thank you for an easy, and working solution

Cheers!
twmaffun is offline  
Unread 2nd Feb 2011, 05:10 PM   #6
David Murray
 
Join Date: 2006
Location: Eden Valley, Cumbria, United Kingdom.
Posts: 13
Thanks: 8
Thanked 2 Times in 2 Posts
Default
Re: 301 redirect on Wordpress
Share on: 
fb share twitter share gplus share more share

Many thanks for the help on this. I've been away for a fewa days but will now try the solution suggested. Thanks again.

- David Murray -
Cumbria, England
http://admastery.biz
http://around-england.co.uk
djmurray is offline  
Unread 4th Feb 2011, 12:24 AM   #7
Wordpress theming
 
Shri Krishna Technologies's Avatar
 
Join Date: 2010
Location: Nagpur
Posts: 78
Thanks: 1
Thanked 5 Times in 5 Posts
Default
Re: 301 redirect on Wordpress
Share on: 
fb share twitter share gplus share more share

there is plugin in wordpress called Simple 301 Redirects you can use it and redirect your all post wherever you want
Shri Krishna Technologies is offline  
Closed Thread


Bookmarks

Tags
301, redirect, wordpress


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 03:07 PM.