• Resolved Paligula

    (@paligula)


    Hiya

    I finally took the plunge and nuked my php-nuke site in favor of wordpress!

    Everything is working great but after many hours of trying I cannot figure out how to do permanent redirects of some of the php-nuke urls to my new wordpress urls.

    I have approx 5 or 6 that I would like to redirect.

    For example

    I cannot permanently redirect:

    https://my-site.com/modules.php?name=gallery2

    to

    https://my-site.com/gallery/

    That’s the format of all the pages I want to redirect. That is – modules.php?name=Web_Links; modules.php?name=Downloads etc

    I tried the plugin 404 redirected but that did not work. I am thinking its the question mark in the url that is causing me grief?

    Any assistance will be greatly appreciated!

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hmm… I’d try spinning up a script titled modules.php that looks at the given name and does a 301 header redirect to the appropriate page. Then just upload that to the WordPress root directory… I don’t think you’ll need to make any modifications to your .htaccess file – it should pick up the script automatically.

    I hope this helps!

    Thread Starter Paligula

    (@paligula)

    Hiya

    Thanks for the response!

    Not a programmer here.

    Can you point me to some examples?

    Thread Starter Paligula

    (@paligula)

    Hi

    I managed to figure it out.

    I found a site that has a “301 Redirects from Dynamic to Static Generator” on it. The link is below

    https://www.mbstrategic.com/02/301-redirects-for-dynamic-urls-to-static-pages-with-htaccess/

    All I had to do was plug in the old php-nuke URL and the new wordpress URL into a spreadsheet and it wrote the code for me to add to the .htaccess file.

    I added the generated code above the wordpress code in the .htaccess file.

    That code generator is definitely a keeper!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirects PHP-Nuke URLs to WordPress’ is closed to new replies.