| | #1 |
| David Murray Join Date: 2006 Location: Eden Valley, Cumbria, United Kingdom.
Posts: 13
Thanks: 8
Thanked 2 Times in 2 Posts
|
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 - |
| | |
| |
| | #2 |
| Active Warrior War Room Member Join Date: 2010
Posts: 97
Thanks: 2
Thanked 2 Times in 2 Posts
|
Not entirely sure, but I think an .htaccess rule would take care of this problem just fine.
|
| |
| | #3 |
| Active Warrior Join Date: 2010
Posts: 52
Thanks: 11
Thanked 11 Times in 9 Posts
|
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> |
| |
| | #4 |
| Active Warrior War Room Member Join Date: 2009 Location: Texas
Posts: 46
Thanks: 1
Thanked 9 Times in 8 Posts
|
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 |
| | |
| |
| The Following User Says Thank You to shinepuppy For This Useful Post: |
| | #5 | |
| Active Warrior War Room Member Join Date: 2010
Posts: 97
Thanks: 2
Thanked 2 Times in 2 Posts
|
![]() Cheers! | |
| |
| | #6 |
| David Murray Join Date: 2006 Location: Eden Valley, Cumbria, United Kingdom.
Posts: 13
Thanks: 8
Thanked 2 Times in 2 Posts
|
Many thanks for the help on this. I've been away for a fewa days but will now try the solution suggested. Thanks again.
|
| | |
| |
| | #7 |
| Wordpress theming Join Date: 2010 Location: Nagpur
Posts: 78
Thanks: 1
Thanked 5 Times in 5 Posts
|
there is plugin in wordpress called Simple 301 Redirects you can use it and redirect your all post wherever you want
|
| |
|
| Bookmarks |
| Tags |
| 301, redirect, wordpress |
| |