301 Redirect Help Needed

5 replies
I have moved 40k html articles into wordpress, I now need to setup 301 redirects so I don't lose all my link juice.

the old format was

/articles/My_Old_Title.html
/articles/Slightly_Longer_and_Crazier_Title.html

the new format is

/articles1/my-old-format/
/articles1/slightly-longer-and-crazier-title/

can anybody help me out with the syntax on my 301 statements (so I don't have to have 40,000 of them)
#301 #needed #redirect
  • Profile picture of the author KirkMcD
    The problem is you don't know how many words will be in a title to do an easy regex match in .htaccess.

    What you could do is to intercept every file request to the directory "articles" and rewrite it in a small script which redirects to the new name.
    {{ DiscussionBoard.errors[4888763].message }}
  • Profile picture of the author SupporTech
    Ok, try my htaccess ..

    Options +FollowSymlinks
    RewriteEngine on

    Redirect /articles/My_Old_Title.html h|ttp://do|main.|co|m/articles1/my-old-format/[/url]
    Redirect /arti|cles/|Slightly_Longer_and_Crazie|r_Title.html ht|tp://do|main.com/articles1/slightly-longer-and-crazier-title/

    Please Remove the " | " in http and the domain.com
    {{ DiscussionBoard.errors[4890038].message }}
  • Profile picture of the author keven brown
    I think it would be much more easier if you install permalaink redirec plugin. In the phugin give structure of your old html urls. All the old urls will be 301ned to new structure.
    {{ DiscussionBoard.errors[4890440].message }}
  • Profile picture of the author DavidWincent
    You can install permalink redirect plugin. It is easily available.All you have to do is submit your old URLs and your old URLs will be easily converted to the new structure.
    Signature
    Webmaster Studio -A premier web design and internet marketing company in New York.
    {{ DiscussionBoard.errors[4891023].message }}
    • Profile picture of the author lunchboxdiet
      Originally Posted by DavidWincent View Post

      You can install permalink redirect plugin. It is easily available.All you have to do is submit your old URLs and your old URLs will be easily converted to the new structure.
      yeah i just typed in 'meta redirect' and got a good plugin that way.
      Signature

      NEW Weight Loss Hypnosis Affiliates Make $199
      Diet affiliate? Click here
      The Lunch Box Diet has had more offline media coverage than any other online diet...

      {{ DiscussionBoard.errors[4891047].message }}

Trending Topics