Fork me on GitHub

How to redirect from the URL format of PN 0.64 to the new one?  Bottom

Go to page [-1] 1 - 2:

  • I want it too please please
    mlduclos at gmail dot com
  • I would love it as well - dawgtoons at gmail dot com or PM here. Thanks!!



    edited by: ToonDawg, Jul 25, 2008 - 07:37 PM
  • mlduclos

    Hello Abadia, how do you solve this?

    It take me hours to configure 390 redirects in the old postnuke format to new dir based short uri of zikula, in rules like that

    redirect permanent /Article46.html http://www.site.com/News/TEMPO-PRESENTE/

    But this doesnt working, when you go to www.site.com/Article46.html it create a URL like

    http://www.site.com/News/TEMPO-PRESENTE/?Article46.html

    How we can do that?


    Hi,

    I faced the exact same problem, and after a lot of Googling, found a solution that works without tweaking anything in the news module!

    We need to use RewriteRule with 301 redirect instead of a regular Redirect.

    Here is an example:

    RewriteRule ^Article233\.html$ http://www.yourdomain.com/your-descriptive-URL/? [R=301,L]

    The ? at the end removes any arguments following the re-written URL.

    (Please don't ask me how this works - I am a finance guy with very little tech knowledge! I just know that it works, and it has helped me tremendously in my migration from PostNuke 764 to Zikula 111)

    Thus, when http://www.yourdomain.com/Article233.html is entered in the browser, instead of:

    http://www.yourdomain.com/your-descriptive-URL/?Article233.html

    you would get the desirable URL:

    http://www.yourdomain.com/your-descriptive-URL/

    This is very SEO friendly as well, as it would redirect to the correct page and would pass the pagerank of the earlier URL to the new one.



    edited by: raagv, Jun 13, 2009 - 10:25 PM

    --
    --------------------
    Raag Vamdatt
    RaagVamdatt.com - Personal Finance and Investment Planning - a PostNuke based site

Go to page [-1] 1 - 2:

This list is based on users active over the last 60 minutes.