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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Short URLs Are Broken in 1.2.4
-
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
-
- Rank: Softmore
- Registered: Dec 31, 1969
- Last visit: May 25, 2010
- Posts: 326
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 -
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
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 -
- Rank: Softmore
- Registered: Dec 31, 1969
- Last visit: May 25, 2010
- Posts: 326
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.
Edited by damon on Oct 20, 2010 - 12:54 AM.
--
Damon
Catamaran Sailing at TheBeachcats.com -
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
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 -
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
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 -
- Rank: Softmore
- Registered: Dec 31, 1969
- Last visit: May 25, 2010
- Posts: 326
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 -
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
check that you don't have any template overrides in /config or you regular theme for news or the printer theme. -
- Rank: Softmore
- Registered: Dec 31, 1969
- Last visit: May 25, 2010
- Posts: 326
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 -
- Rank: Freshman
- Registered: Apr 18, 2006
- Last visit: Feb 28, 2010
- Posts: 68
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 -
- Rank: Softmore
- Registered: Dec 31, 1969
- Last visit: May 25, 2010
- Posts: 326
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
- Moderated by:
- Support
