301 redirect on Wordpress

6 replies
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 -
#301 #redirect #wordpress
  • Profile picture of the author twmaffun
    Not entirely sure, but I think an .htaccess rule would take care of this problem just fine.
    {{ DiscussionBoard.errors[3267782].message }}
  • Profile picture of the author Scoop
    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>
    {{ DiscussionBoard.errors[3267839].message }}
  • Profile picture of the author djmurray
    Many thanks for the help on this. I've been away for a fewa days but will now try the solution suggested. Thanks again.
    Signature

    - David Murray -
    Cumbria, England
    http://admastery.biz
    http://around-england.co.uk

    {{ DiscussionBoard.errors[3295521].message }}
  • there is plugin in wordpress called Simple 301 Redirects you can use it and redirect your all post wherever you want
    {{ DiscussionBoard.errors[3303769].message }}

Trending Topics