Fork me on GitHub

Short URLs Are Broken in 1.2.4  Bottom

Go to page [-1] 1 - 2:

  • News 262 should work fine. I have not seen/heard issues with file or dir based shorturls. So not sure what happens there ? Did you override the functions in userapi decode/encode perhaps that define the shorturls for news

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • espaan

    News 262 should work fine. I have not seen/heard issues with file or dir based shorturls. So not sure what happens there ? Did you override the functions in userapi decode/encode perhaps that define the shorturls for news


    Thanks for replying about the News URL problem. No, I haven't modified anything in News, not even the templates, just a straight install.

    All the links to News articles have the same URL of
    /news
    if I set strip entry point to no they all change to
    /index.php/news
    if I turn off short urls they all get working long urls.

    --
    Damon
    Catamaran Sailing at TheBeachcats.com
  • FYI, the short urls issue mentioned in this thread was corrected in the Zikula 1.2.5 build cycle. See http://ci.zikula.org/ for the latest build.

    Regards,

    Drak

    --
    Zikula Lead Developer
    Board Member of the Zikula Foundation
    Follow me on twitter.com/zikuladrak
  • drak

    FYI, the short urls issue mentioned in this thread was corrected in the Zikula 1.2.5 build cycle. See http://ci.zikula.org/ for the latest build.

    Drak, are there files I could grab out of that to fix the immediate problem with my News module links until there is an upgrade patch available.

    Oh, it looks like you meant that the ticket I referred to
    http://code.zikula.org/core/ticket/2520
    has been fixed but that only fixes the mistaken commented line for file based short urls.

    If I can't get the News links working I'm going to be forced to change URL style again, I couldn't screw up my search engine positions more if I tried. wallbash



    Edited by damon on Oct 20, 2010 - 12:54 AM.

    --
    Damon
    Catamaran Sailing at TheBeachcats.com
  • I believe it was just the .htaccess file, either that or you can use the patch provided at CI.

    Drak

    --
    Zikula Lead Developer
    Board Member of the Zikula Foundation
    Follow me on twitter.com/zikuladrak
  • damon


    Thanks for replying about the News URL problem. No, I haven't modified anything in News, not even the templates, just a straight install.

    All the links to News articles have the same URL of
    /news
    if I set strip entry point to no they all change to
    /index.php/news
    if I turn off short urls they all get working long urls.


    Weird, when you enable directory based shorturls News should pick up this setting and encode/decode the shorturls just fine. You do have a section for the shorturls construction in News/Settings? The default there is "Format based on Date and Name". Could it be that you have a custom setting, that is messed up somehow?
    Or is it related to the fix mentioned above by Drak.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • espaan

    Weird, when you enable directory based shorturls News should pick up this setting and encode/decode the shorturls just fine. You do have a section for the shorturls construction in News/Settings? The default there is "Format based on Date and Name". Could it be that you have a custom setting, that is messed up somehow?
    Or is it related to the fix mentioned above by Drak.


    Reporting back with good progress.

    I had looked at the URL settings in News, they were set to the default Date and Name as you said. But your answer gave me the idea to purge all permalinks. That didn't help, but then I changed to custom settings with

    Code

    %articleid%/%articletitle%

    and my News links started working!

    I still have one problem, the "print" icon for an an article looks to have the correct URL
    Printer/articleID/articleTitle/
    but when clicked I get a "printer friendly" page with the last five articles home text, plus a bunch of links, no matter which article the print link was on or what the URL is.

    I have upladed a fresh copy of the Printer theme and cleared Xanthia/pnRender compiled (not using caching) just to make sure that was ok.

    --
    Damon
    Catamaran Sailing at TheBeachcats.com
  • check that you don't have any template overrides in /config or you regular theme for news or the printer theme.
  • craigh

    check that you don't have any template overrides in /config or you regular theme for news or the printer theme.

    Thanks for the suggestion, the News 2.6.2 ships with Printer theme override templates, so yes they were there in /thems/Printer/templates/modules/News

    I removed them and cleared compiled, that didn't fix the problem of multiple articles showing up.

    --
    Damon
    Catamaran Sailing at TheBeachcats.com
  • Hallo Damon,
    i am using follow htaccess for Version 1.2.4

    Code

    # Zikula Application Framework
    #
    # @copyright (c) 2001, Zikula Development Team
    # @link http://www.zikula.org
    # @version $Id: shorturls.file.htaccess 25343 2009-01-24 04:02:50Z mateo $
    # @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
    #
    # Based upon the .htaccess of MD-Pro, written by
    # LongiTEKK.com NETWORK Admin - chtekk@longitekk.com
    # MaxDev Devel - chtekk@maxdev.com
    #
    # ----------------------------------------------------------------------
    # Place this file in your Zikula root directory, alongside the main
    # index.php file
    # The "Options FollowSymLinks" line may be deleted, since on certain
    # hosts it causes a config error!
    # ----------------------------------------------------------------------

    # security options
    php_flag register_globals off
    php_flag magic_quotes_gpc off

    AddHandler php53-cgi .php


    RewriteEngine On

    # ENG
    # This option is for use in Virtual Hosts or .htaccess files to inherit rewrite rules in the main section,
    # so if you have your own server you don't have to copy the rules into every Virtual Host you run.
    # Will cause an error if placed in the main httpd.conf section, as there's nothing to inherit.

    # RewriteOptions 'inherit'

    # Exclude certain directories
    RewriteRule ^modules/.*$ - [PT]
    RewriteRule ^themes/.*$ - [PT]
    RewriteRule ^javascript/.*$ - [PT]

    # Basic entry point rules
    RewriteRule ^index\.p?html?$ index.php [L,NC,NS]
    RewriteRule ^user\.p?html?$ user.php [L,NC,NS]

    # Language changing
    RewriteRule ^changelang-([^-]+)\.p?html?$ index.php?newlang= [L,NC,NS]

    # Theme changing
    RewriteRule ^changetheme-([^-]+)\.p?html?$ index.php?newtheme= [L,NC,NS]
    RewriteRule ^previewtheme-([^-]+)\.p?html?$ index.php?theme= [L,NC,NS]

    # General rules for modules with index.php?module=...
    RewriteRule ^module-([^-]+)\.p?html?$ index.php?module=&func=main [L,NC,NS]
    RewriteRule ^module-([^-]+)-([^-]+)\.p?html?$ index.php?module=&func= [L,NC,NS]
    RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.p?html?$ index.php?module=&func=&= [L,NC,NS]
    RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.p?html?$ index.php?module=&func=&=&= [L,NC,NS]
    RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.p?html?$ index.php?module=&func=&=&=&= [L,NC,NS]

    # General rules for modules with index.php?name=...
    RewriteRule ^([^-]+)\.p?html?$ index.php?name= [L,NC,NS]
    RewriteRule ^([^-]+)-([^-]+)-([^-]+)\.p?html?$ index.php?name=&= [L,NC,NS]
    RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.p?html?$ index.php?name=&=&= [L,NC,NS]
    RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.p?html?$ index.php?name=&=&=&= [L,NC,NS]
    # RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.p?html?$ index.php?name=&=&=&=&= [L,NC,NS]

    # General rules for modules with index.php?name=...&file=...
    RewriteRule ^([^-]+)\+([^-]+)\.p?html?$ index.php?name=&req= [L,NC,NS]
    RewriteRule ^([^-]+)\.p?html?$ index.php?name= [L,NC,NS]
    RewriteRule ^([^-]+)-([^-]+)\.p?html?$ index.php?name=&file= [L,NC,NS]
    RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)\.p?html?$ index.php?name=&file=&= [L,NC,NS]
    RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.p?html?$ index.php?name=&file=&=&= [L,NC,NS]
    RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.p?html?$ index.php?name=&file=&=&=&= [L,NC,NS]

    Works fine for me Demo:http://www.postnuke-themes.de

    --
    regards from germany

    High Quality Postnuke + Zikula Themes
  • Charlie-otb


    Works fine for me Demo:http://www.postnuke-themes.de


    Thank you, that is pretty much what I had with file based urls, but I'm now using directory based urls because I like the links better. The only problem I seem to have now is the print link for News articles doesn't work correctly.

    I haven't been able to figure out if the print theme link problem is with the URL system, news module, my mistake, or the server environment (PHP as CGI).

    I'll probably just remove the print icon from the News templates and create a print stylesheet instead.

    --
    Damon
    Catamaran Sailing at TheBeachcats.com

Go to page [-1] 1 - 2:

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