Forums

I want to maintain my old urls (5 posts)

  1. canjuarlos
    Member
    Posted 4 years ago #

    Hello,

    I'm migraing my old weblog developed in ASP + M$ Acsess to WordPress. All the post, comments, categories and look & feel are migrated and all it's working perfect, but I've a little question... I don't want to lose my old references (because there're people refering me and some pages are indexed in Google and other search engines), so I'd like that these old links redirect to new links. For that I used the .htaccess file and I added some directives like:


    RewriteRule ^(.+)/showBlog\.asp?$ /wp/index.php?$1 [QSA,L]
    RewriteRule ^(.+)/rssfeed\.asp /wp/index.php?&feed=rss2 [QSA,L]

    But it's not working and my knowledge abut this topic it's a little bit low... Can someone help me?

    Thanks in advance...

    jc!

  2. Viper007Bond
    Member
    Posted 4 years ago #

    Can you give some examples of old URLs, including your old RSS feed URL(s)?

  3. canjuarlos
    Member
    Posted 4 years ago #

    Of course...

    The weblog is located in the same directory, the posts ids, comments ids, categories ids and comments ids are the same, but the files are different:

    * Index:
    showBlog.asp?p=<id_post>

    * RSS feed:
    rssfeed.asp (RSS2 format)

    * Categories:
    categories.asp?c=<id_category>

    * archive:
    archive.asp?m=<month>&y=<year>

    The old url is something like this: http://www.mydomine.com/myname/weblog/showBlog.asp

    Thanks in advance... jc!

  4. canjuarlos
    Member
    Posted 4 years ago #

    any ideas? v_v

  5. Viper007Bond
    Member
    Posted 4 years ago #

    mod_rewrite is not one of my strong points, but I'll give it a go since no one else has. This is for an .htaccess file located in weblog.

    RewriteRule ^showBlog.asp(.+) /index.php$1 [QSA,L]
    RewriteRule ^rssfeed.asp /index.php?feed=rss2 [QSA,L]
    RewriteRule ^categories.asp?c=([0-9]{1,2}) /index.php?cat=$1 [QSA,L]
    RewriteRule ^archive.asp?m=([0-9]{1,2})&y=([0-9]{4}) /index.php?year=$2&monthnum=$1 [QSA,L]

    See if those work. They may or may not as they are just an educated guess.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags