Fork me on GitHub

sesitemap and shorturls  Bottom

  • I cannot seem to get the sesitemap module functioning properly with shorturls (file) enabled. I have added code to the pnRender outputfilter.shorturls.php, as follows:

    For the $in array, I added

    Code

    $prefix . 'index.php\?module=sesitemap"|',

    and for the $out array, I added

    Code

    '"sesitemap.'.$extension.'"',


    Then I added the following to the .htaccess file in the root

    Code

    RewriteRule ^sesitemap\.p?html?$ index.php?module=sesitemap [L,NC,NS]


    I've tried this with other modules that don't work out of the box and it worked for them. But not for sesitemap (I get a 404 not found error). http://americaneagle…dule-sesitemap.html

    I'm running Zikula 1.2, and sesitemap is part of the "webservices" project at the Cozi.
  • Yeah, funny how it magically started working. I even tried clearing my Zk caches and my browser's cache yesterday to no avail. Go figure.
  • You have added a module- prefix to your first link, I found the working sitemap by omitting that. It works by the way here without any changes to the stock output filter, I use just the default .htaccess file and let the general rules for file based shorturls handle it.
    The output filter hack is needed for very special probems only, e.g. getting rid of the module- prefix for the News module.
    Greetings,
    Chris



    edited by: slam, datetimebrief

    --
    an operating system must operate
    development is life
    my repo
  • correct indeed slam. I would like to see a multi-sitemap for News module though. I had to increase my PHP timeout for that sitemap due to the large number of articles my site has.

    supa

    --
    ttgapers.com - the latest from the caribbean
    Caribbean News
    Online Shopping from USA, Canada, UK, France, Germany
    On Facebook
  • Oh yeah. D'oh! icon_eek

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