Forums

mod_rewrite (phpnuke to wordpress) (2 posts)

  1. Yoss
    Member
    Posted 5 years ago #

    I realize this may not be the best place to post this, but I was shunned in the phpnuke forums, so here goes:

    I am moving my blog from php-nuke to WordPress. I don't want to even think about trying to integrate the two, but I would like to keep by Google traffic heading to the right place.

    I have made a copy of my current website (www.denymyfreedom.com) and put it in the following folder (www.denymyfreedom.com/legacy/).

    My thought is to use mod_rewrite so that whenever someone follows a google link to a phpnuke story, they are redirected to the legacy website where they can still view it.

    This is what I have so far, and I know it is wrong:

    -------------------------------

    RewriteEngine on

    RewriteCond %{QUERY_STRING} ^name=news&file=(article|print)&sid=([0-9]+) [NC]
    RewriteRule ^modules\.php$ /legacy/ [R=301]

    -----------------

    I know the first string is correct, because I got if off someones case study from moving phpnuke to another CMS. What I am wondering is what my second string should be so as to just have the stories redirected to the module.php in the /legacy/ folder.

    Any help would be appreciated. Thanks!

  2. christopher hradil
    Member
    Posted 5 years ago #

    if you're that your RewriteCond is correct (matches only OLD items), try:

    RewriteRule ^(.*)$ /legacy/modules.php$1 [R=301, L]

Topic Closed

This topic has been closed to new replies.

About this Topic