Forums

[resolved] Old to new URL - Help (5 posts)

  1. Neso
    Member
    Posted 1 year ago #

    Hi, I need to redirect old URL-s from my old site to new wordpress url-s.

    This is how look 1 of old urls, they are all same only last number changes:

    http://www.mysite.com/like.php?id=12154

    and this is how need to look now:

    http://www.mysite.com/like/12154

    Thank you
    Neso

  2. panther8
    Member
    Posted 1 year ago #

    Hi Neso, I think the Redirection plugin will help you to do so...
    http://wordpress.org/extend/plugins/redirection/

    However, in terms of SEO I would recommend you to change your URL to a custom structure, such as /date/month/titel or just /category/title, and not just a number /12556.
    http://www.wordpressmax.com/customize-wordpress/custom-permalinks

  3. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Don't use /category/title. See http://ottopress.com/2010/category-in-permalinks-considered-harmful/ for the reasons why.

  4. Neso
    Member
    Posted 1 year ago #

    I have resolved problem, no need for Redirect plugin, just add this to htaccess file.

    RewriteCond %{QUERY_STRING} ^id=(.*)$
    RewriteRule ^like\.php$ http://mysite.com/like/%1? [R=301,L]

    I hope this will help sombody ... ;)

  5. panther8
    Member
    Posted 1 year ago #

    Thanks for pointing that out esmi... wasn't aware of that.

Topic Closed

This topic has been closed to new replies.

About this Topic