Hi
I have played around with pnWikka after checking it out from SVN (any reason there
is no offical package?).
It works like a charm but i noticed on a fresh 0.764 installation that the links in the
Wiki are not "short URLified".
I compared it with the entries here on the side and i noticed here it works.
Can the person who fixed it please give a hint how to enable it?
Thanks
MT
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- 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
- internetking created topic »password problem« 25. May
- 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
- mdee created topic »How to implement returnpage ?« 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
pNWikka Short URL like on this Site
-
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Jul 26, 2008
- Posts: 61
Hm, i have to answer my own thread...
Insert this 2 parts in outputfilter.shorturls.php
Code
$prefix . 'index.php\?module=pnWikka"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)[#]([\w\d]*)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)[#]([\w\d]*)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)[#]([\w\d]*)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)[#]([\w\d]*)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)[#]([\w\d]*)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)[#]([\w\d]*)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)[#]([\w\d]*)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)"|',
$prefix . 'index.php\?module=pnWikka&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)&(?:amp;)?([\w\d\.\:\_\/]+)=([\w\d\.\:\_\/]+)[#]([\w\d]*)"|',
//and the 2nd part:
'"'.$base_url.'wiki.'.$extension.'"',
'"'.$base_url.'wiki-.'.$extension.'"',
'"'.$base_url.'wiki-.'.$extension.'#"',
'"'.$base_url.'wiki--.'.$extension.'"',
'"'.$base_url.'wiki--.'.$extension.'#"',
'"'.$base_url.'wiki---.'.$extension.'"',
'"'.$base_url.'wiki---.'.$extension.'#4"',
'"'.$base_url.'wiki----.'.$extension.'"',
'"'.$base_url.'wiki----.'.$extension.'#"',
'"'.$base_url.'wiki-----.'.$extension.'"',
'"'.$base_url.'wiki-----.'.$extension.'#"',
'"'.$base_url.'wiki------.'.$extension.'"',
'"'.$base_url.'wiki------.'.$extension.'#"',
'"'.$base_url.'wiki-------.'.$extension.'"',
'"'.$base_url.'wiki-------.'.$extension.'#"',
'"'.$base_url.'wiki--------.'.$extension.'"',
'"'.$base_url.'wiki--------.'.$extension.'#"',
in .htaccess insert
Code
# General rule Wikka
RewriteRule ^wiki\.htm$ index.php?module=pnWikka [L]
RewriteRule ^wiki-(?:([^-]+)-([^-]+))?(? <img src="http://community.zikula.org/images/smilies/icon_frown.gif" alt="icon_frown" /> [^-]+)-([^-]+))?(? <img src="http://community.zikula.org/images/smilies/icon_frown.gif" alt="icon_frown" /> [^-]+)-([^-]+))?(? <img src="http://community.zikula.org/images/smilies/icon_frown.gif" alt="icon_frown" /> [^-]+)-([^-]+))?\.htm$ index.php?module=pnWikka&$1=$2&$3=$4&$5=$6&$7=$8 [L]
Thats all -
- Rank: Softmore
- Registered: Dec 31, 1969
- Last visit: May 25, 2010
- Posts: 326
michtoen
I compared it with the entries here on the side and i noticed here it works.
Can the person who fixed it please give a hint how to enable it?
Thanks
MT
I would like to know how about short URL's for pnWikka also. And it looks like SVN is the only source for this?
Thanks,
--
Damon
Catamaran Sailing at TheBeachcats.com -
- Rank: Team Member
- Registered: May 03, 2004
- Last visit: May 31, 2010
- Posts: 511
If your main .htaccess file contains those lines, short urls should work fine for most modules including pnWikka:
Code
# General rules for modules with index.php?name=...
RewriteRule ^name-([^-]+)\.html$ index.php?name= [L,NC,NS]
RewriteRule ^name-([^-]+)-([^-]+)\.html$ index.php?name=&file= [L,NC,NS]
RewriteRule ^name-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?name=&file=&= [L,NC,NS]
RewriteRule ^name-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?name=&file=&=&= [L,NC,NS]
RewriteRule ^name-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?name=&file=&=&=&= [L,NC,NS]
# General rules for modules with index.php?module=...
RewriteRule ^module-([^-]+)\.html$ index.php?module=&func=main [L,NC,NS]
RewriteRule ^module-([^-]+)-([^-]+)\.html$ index.php?module=&func= [L,NC,NS]
RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=&func=&= [L,NC,NS]
RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=&func=&=&= [L,NC,NS]
RewriteRule ^module-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?module=&func=&=&=&= [L,NC,NS]
# General rules for modules with index.php?name=...
RewriteRule ^([^-]+)\.html$ index.php?name= [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)-([^-]+)\.html$ index.php?name=&= [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?name=&=&= [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?name=&=&=&= [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?name=&=&=&=&= [L,NC,NS]
# General rules for modules with index.php?name=...&file=...
RewriteRule ^([^-]+)\+([^-]+)\.html$ index.php?name=&req= [L,NC,NS]
RewriteRule ^([^-]+)\.html$ index.php?name= [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)\.html$ index.php?name=&file= [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?name=&file=&= [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?name=&file=&=&= [L,NC,NS]
RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?name=&file=&=&=&= [L,NC,NS]
Greetings,
Chris
--
an operating system must operate
development is life
my repo
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
