Wordpress: Taking off categories?

10 replies
  • SEO
  • |
Okay, I think I know the answer but since it doesn't satisfy me, I thought maybe somebody has some ideas.

One of my websites had the permalink structure of /category/postname/. Now, I want to get rid of the category (I have no idea how I forgot about it).

How do I stop including category in my new posts, but keep older links that are with category still active? As soon as I make the change, older links will change too (which is pretty stupid; Wordpress should've done something about a long time ago), and since I have a lot of quality websites linking to those, I don't want to lose them.

Any ideas?
#categories #taking #wordpress
  • Profile picture of the author onSubie
    The URLs are generated dynamically so you can't save an old URL form and start using a new one.

    You could use a redirect plugin that gives a permanent 301 redirect of the old URL to the new one to preserve your backlinks.
    {{ DiscussionBoard.errors[9079267].message }}
    • Profile picture of the author TLondon
      Originally Posted by onSubie View Post

      You could use a redirect plugin that gives a permanent 301 redirect of the old URL to the new one to preserve your backlinks.
      How exactly would I go about this? It's obvious when you're just changing a category, or removing a post and putting it elsewhere, but in case of taking of category on WP... I'm not really sure how one would use 301 here.
      {{ DiscussionBoard.errors[9079276].message }}
  • Profile picture of the author AlyseS
    You don't need a plugin to keep your links working if you change your permalink structure in the settings or if you change the post url in the post editor.

    When you change your permalink structure or the url in the editor, all your links should automatically redirect from your old permalink to the new one. So if someone finds your old link on another site and clicks it, they will be taken to the page with the new link structure.

    Just change your permalink structure in the settings, wait a bit and test the old permalink structure with the "category". It should redirect to the new link without the "category". Whenever I've done this, it has always worked.
    {{ DiscussionBoard.errors[9079466].message }}
    • Profile picture of the author TLondon
      Originally Posted by AlyseS View Post

      You don't need a plugin to keep your links working if you change your permalink structure in the settings or if you change the post url in the post editor.

      When you change your permalink structure or the url in the editor, all your links should automatically redirect from your old permalink to the new one. So if someone finds your old link on another site and clicks it, they will be taken to the page with the new link structure.

      Just change your permalink structure in the settings, wait a bit and test the old permalink structure with the "category". It should redirect to the new link without the "category". Whenever I've done this, it has always worked.
      Hm, it did work. It's been a while since I've tried it. Thanks a lot, haha!
      {{ DiscussionBoard.errors[9079500].message }}
    • Profile picture of the author shahnawazsadique
      Could you please give us example because I am little afraid to do that
      {{ DiscussionBoard.errors[9081811].message }}
  • Profile picture of the author samnickson
    Make sure you use a 301 redirect plugin to redirect old URLs to new otherwise Google will show lot of not found errors.
    {{ DiscussionBoard.errors[9079520].message }}
    • Profile picture of the author nettiapina
      Originally Posted by samnickson View Post

      Make sure you use a 301 redirect plugin to redirect old URLs to new otherwise Google will show lot of not found errors.
      Not keeping up with the thread? WordPress' build-in redirect feature already solved the issue and saved the day. It's been there since 3.5 or something.
      Signature
      Links in signature will not help your SEO. Not on this site, and not on any other forum.
      Who told me this? An ex Google web spam engineer.

      What's your excuse?
      {{ DiscussionBoard.errors[9080091].message }}
  • Profile picture of the author farabi2
    Its so easy with the latest WordPress version, just change your permalink structure and old link will be automatically convert to new link.
    {{ DiscussionBoard.errors[9080319].message }}
  • Profile picture of the author Fujin
    Here is how I did in the same situation.
    1. Install the plugin WP No Category Base - WPML compatible to get rid of redirection.
    2. Install the plugin Redirection.
    3. Go to Redirection control panel and one-by-one add all urls with "category" in 1st field and URLs without "category" to second field.

    This way you will permanently (301) redirect old pages to new ones and will let Google know that these are the same pages and you won't loose rankings.

    If you have a lot of pages to redirect (>100) then prepare sitemap text document to make sure you wont miss anything.
    {{ DiscussionBoard.errors[9081824].message }}
  • Profile picture of the author TLondon
    Guys, just like one of the answers said, the new WP automatically redirects everything and updates the sitemap. There won't be any errors or 404s. That's it.
    {{ DiscussionBoard.errors[9082235].message }}

Trending Topics