[pmwiki-users] PmWiki CleanUrl

Manish Ranade manish at thunderdata.com
Fri May 19 08:43:55 CDT 2006


Hi,

I am trying to remove 'wiki' from URL using apache mod_rewrite.

Before adding rewrite code, URL was: 
http://www.mysite.com/wiki/GroupName/HomePage, and now it is:
http://www.mysite.com/GroupName/HomePage.

But when I edit the page and save it, it goes back to: 
http://www.mysite.com/wiki/GroupName/HomePage.

Rewrite code is as follows:
RewriteRule ^([^/a-z].*) wiki/pmwiki/pmwiki.php?n=$1  [QSA,L]

PmWiki installation is outside www directory.

I have two questions on this:

1. Is there any way to fix the above problem?
2. Is there any way to remove GroupName also?

Thanks,
Manish




----- Original Message ----- 
From: <pmwiki-users-request at pmichaud.com>
To: <pmwiki-users at pmichaud.com>
Sent: Friday, May 19, 2006 5:57 AM
Subject: pmwiki-users Digest, Vol 11, Issue 50


> Send pmwiki-users mailing list submissions to
> pmwiki-users at pmichaud.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
> or, via email, send a message with subject or body 'help' to
> pmwiki-users-request at pmichaud.com
>
> You can reach the person managing the list at
> pmwiki-users-owner at pmichaud.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of pmwiki-users digest..."
>
>
> Today's Topics:
>
>   1. $EnablePageLogo == TRUE (Benjamin Fay)
>   2. Re: $EnablePageLogo == TRUE (H. Fox)
>   3. Re: Tag - (Was: RFC: refactored introduction to wiki markup)
>      (christian.ridderstrom at gmail.com)
>   4. Re: History/trace of the pages already seen
>      (christian.ridderstrom at gmail.com)
>   5. Re: Cmsb-blocklist - messageblocked reason and comments
>      (K.A.Bouton)
>   6. Re: Help needed to debug a pmwiki issue (unable to save long
>      wiki pages) (christian.ridderstrom at gmail.com)
>   7. Re: Mail Posts -- Self subscribe to  "Watch Lists"
>      (Scott Connard)
>   8. Re: History/trace of the pages already seen
>      (christian.ridderstrom at gmail.com)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 19 May 2006 09:59:17 +0200
> From: Benjamin Fay <benjamin.fay at gmail.com>
> Subject: [pmwiki-users] $EnablePageLogo == TRUE
> To: "H. Fox" <haganfox at users.sourceforge.net>
> Cc: Pm user list <Pmwiki-users at pmichaud.com>
> Message-ID: <200605190959.17693.benjamin.fay at gmail.com>
> Content-Type: text/plain;  charset="iso-8859-1"
>
> Hello
>
> I can't get $EnablePageLogo get to work in LIGHT skin.
> I have put
>
> ## Use a graphic logo?
> SDV($EnablePageLogo, 1);
> SDV($PageLogoFile, 'mylogo.jpg');
>
> into my config.php and i have put the image into
>
> pub/skins/light/mylogo.jpg
>
> I have checked the permissions.
>
>
> // Logo  // TODO: Clean up?
> if (empty($pagename) || $pagename==$DefaultPage && $action == 'browse') {
>  if ($EnablePageLogo == TRUE) {
>    $SkinHomeLink = "<img
>        src='\$SkinDirUrl/$PageLogoFile' alt='$WikiTitle' border='0' />";
>  } else {
>    $SkinHomeLink = "$WikiTitle";
>    $HTMLStylesFmt[] = "\n  #headlogo { margin-top:4px; } ";
>
> Thank you!
>
> Benjamin.
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 19 May 2006 01:03:56 -0700
> From: "H. Fox" <haganfox at users.sourceforge.net>
> Subject: Re: [pmwiki-users] $EnablePageLogo == TRUE
> To: "Benjamin Fay" <benjamin.fay at gmail.com>
> Cc: Pm user list <Pmwiki-users at pmichaud.com>
> Message-ID:
> <2966e8a50605190103i400b3d0u51a0b7d1582de525 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 5/19/06, Benjamin Fay <benjamin.fay at gmail.com> wrote:
>> Hello
>>
>> I can't get $EnablePageLogo get to work in LIGHT skin.
>> I have put
>>
>> ## Use a graphic logo?
>> SDV($EnablePageLogo, 1);
>> SDV($PageLogoFile, 'mylogo.jpg');
>>
>> into my config.php and i have put the image into
>>
>> pub/skins/light/mylogo.jpg
>>
>> I have checked the permissions.
>
> Does this mean you can retrieve the logo image file using your browser?
>
> Hagan
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 19 May 2006 10:39:35 +0200
> From: christian.ridderstrom at gmail.com
> Subject: Re: [pmwiki-users] Tag - (Was: RFC: refactored introduction
> to wiki markup)
> To: pmwiki-users at pmichaud.com
> Message-ID: <Pine.LNX.4.64.0605191038360.27142 at black01.md.kth.se>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Mon, 15 May 2006, John Rankin wrote:
>
> I've added a PITS for tags here, please have a look:
>
> http://pmwiki.org/wiki/PITS/00740.
>
> /Christian
>
> -- 
> Christian Ridderstr?m, +46-8-768 39 44 
> http://www.md.kth.se/~chr
>
> ------------------------------
>
> Message: 4
> Date: Fri, 19 May 2006 10:45:33 +0200
> From: christian.ridderstrom at gmail.com
> Subject: Re: [pmwiki-users] History/trace of the pages already seen
> To: pmwiki-users at pmichaud.com
> Message-ID: <Pine.LNX.4.64.0605191043190.27142 at black01.md.kth.se>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Tue, 16 May 2006, Clemens Gruber wrote:
>
>> all modern browser have back and forward buttons and you can see in a
>> very elaborated history all pages you have visited before. So I see no
>> need for rebuilding this on a single website.
>
> I'd very much appreciate having a list of the ten last pmwiki pages I
> visited in the sidebar. Or optionally, I'd be nice to have the last five
> pages and the last five ''most frequently visited pages''.
>
> In fact, a listing of the most frequent pages I visit would be very
> convenient as I find myself often go to the same pages over and over.
>
> best regards
> /Christian
>
> -- 
> Christian Ridderstr?m, +46-8-768 39 44 
> http://www.md.kth.se/~chr
>
> ------------------------------
>
> Message: 5
> Date: Fri, 19 May 2006 10:09:56 +0100
> From: "K.A.Bouton" <k.a.bouton at reading.ac.uk>
> Subject: Re: [pmwiki-users] Cmsb-blocklist - messageblocked reason and
> comments
> To: "'H. Fox'" <haganfox at users.sourceforge.net>
> Cc: pmwiki-users at pmichaud.com
> Message-ID: <002001c67b24$111166b0$1765e186 at rdghome.ad.rdg.ac.uk>
> Content-Type: text/plain; charset="us-ascii"
>
> Great- I particularly like the blocklog.
>
> Katherine
>
>> -----Original Message-----
>> From: haganfox at gmail.com [mailto:haganfox at gmail.com] On
>> Behalf Of H. Fox
>> Sent: Friday, May 19, 2006 3:24 AM
>> To: K. A. Bouton
>> Cc: pmwiki-users at pmichaud.com
>> Subject: Re: [pmwiki-users] Cmsb-blocklist - messageblocked
>> reason and comments
>>
>>
>> On 5/18/06, H. Fox <haganfox at users.sourceforge.net> wrote:
>> > On 5/18/06, K.A.Bouton <k.a.bouton at reading.ac.uk> wrote:
>> > > Oops -
>> > > Commentbox cookboox recipe v 2.0.13
>> >
>> > Try the cmsb-blocklist version (2.4.2) that's on pmwiki.org
>> now.  If a
>> > comment is blocked it switches to an edit form with the page's
>> > original contents and displays the why-blocked message,
>> including an
>> > extra line about what happened.
>>
>> Now version 2.5.0 has been uploaded.  It has an
>> $EnableCommentMessages setting that causes blocked comments
>> to send the author to an edit page so the author will see messages.
>>
>> For those who may be interested, cmsb-blocklist 2.5.0 can log
>> information about blocked posts to a wiki page.  There are
>> three new settings for that feature:
>>
>>    $EnableLogBlocked is a switch to turn on the logging feature
>>    $BlockedLogPageName is name of the log page.  The default page is
>>      $SiteGroup.Blocklog.
>>    $BlockedLogLinesMax is the maximum number of entries on
>> the log page.
>>
>> Hagan
>>
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 19 May 2006 11:30:25 +0200 (CEST)
> From: christian.ridderstrom at gmail.com
> Subject: Re: [pmwiki-users] Help needed to debug a pmwiki issue
> (unable to save long wiki pages)
> To: Ivan Teliatnikov <ivan at geosci.usyd.edu.au>
> Cc: pmwiki-users at pmichaud.com
> Message-ID: <Pine.LNX.4.64.0605191117160.27142 at black01.md.kth.se>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Fri, 19 May 2006, Ivan Teliatnikov wrote:
>
>> Christian
>>
>> I got two links from a guy who came across this problem:
>>
>> Do you need anything else? Debugging enabled for PHP/Apache, please let
>> me know and I will do on your first request. I would appreciate if you
>> mention what config variable to change, I am not an expert in PHP.
>>
>> He wrote:
>>
>> Two example pages, actually you should be able to link to them.
>>
>> This one seems a simple case of the entire page being to long. Strange
>> that it worked in our earlier pmwiki version.
>> http://www.geosci.usyd.edu.au/pmwiki/pmwiki.php?n=GPlatesGMLDev.CategorisingFeatures
>>
>> this one seemed somehow related to the  line length in a list element,
>> perhaps
>> http://www.geosci.usyd.edu.au/pmwiki/pmwiki.php?n=GPlatesGML.TheMadnessOfJamesCWGPMLisochron
>>
>> as you can see, I trimmed it enough that it could save, then attempted
>> to increase it back to whatever limit might have been there. You are
>> free to revert this page to whatever time they like in
>> experimentation
>
> Hi Ivan
>
> Would you mind including the relevant parts of the previous post the next
> time? (and ideally write your reply below it like I do now - otherwise I
> get so confused since I browse through > 100 mails per day...)
>
> It seems I can tentatively confirm your problem. Nothing seems to
> happen when I press the save button - I'm just shown the edit page
> once more. Preview works however. This is not consistent with any of the
> two cases I thought, but probably something else.
>
> Here's my syggestion.
>
> First create a separate test page(s) for debugging this problem. So the
> first step for you is to create some page (Test.Test perhaps) where you
> recreate this problem. Then give me the link and I'll verify that I also
> see it. You can write explicit instructions for how to recreate the
> problem on the test page itself.
>
> Secondly, enable debugging by adding
>  $EnableDiag=1;
> to your configuration file. This allows to get diagnostic information from
> PmWiki. But I think Patrick (the author of PmWiki) will have to look at
> this thing to make any sense of it.
>
> Thirdly, check if you can take the identical copy of a problematic page
> and use it to create a test page at pmwiki.org.
>
> regards
> /Christian
>
> -- 
> Christian Ridderstr?m, +46-8-768 39 44 
> http://www.md.kth.se/~chr
>
> ------------------------------
>
> Message: 7
> Date: Fri, 19 May 2006 06:15:20 -0400
> From: Scott Connard <connard at dsg-inc.com>
> Subject: Re: [pmwiki-users] Mail Posts -- Self subscribe to  "Watch
> Lists"
> To: Sivakatirswami <katir at hindu.org>
> Cc: pmwiki-users at pmichaud.com
> Message-ID: <51950154-ABE3-40A0-9A1E-A07007F2054E at dsg-inc.com>
> Content-Type: text/plain; charset="us-ascii"
>
>> OK I'm willing to follow your lead... in fact some users did ask
>> about RSS as an option.. That docs pages seems clear, but subtle
>> details are missing. Looking for the easiest out-of-the-box
>> implementation appears to be getting a feed from recent changes on a
>> group. But, I'm having trouble build a URL that actually works in
>> news aggregator.
>>
>> e.g. for a group named "Migration" in this wiki, the URL you get when
>> you just click "Recent Changes" from any page and then tack on  the
>> RSS options looks like this:
>>
>> feed://www.himalayanacademy.com/admin_wiki/index.php?
>> n=Migration.RecentChanges&action=rss&order=-time
>>
>> but Safari doesn't grok this URL...
>>
>> The test example:    http://www.pmwiki.org/wiki/Category/Skins?
>> action=rss&order=-time
>>
>>   works fine in Safari..new news feed as expected...  so, I'm missing
>> something.
>
> I'm assuming you turned on the RSS feeds in your local/config.php
> file by uncommenting the line:
>
> if ($action == 'rss') include_once("$FarmD/scripts/feeds.php");   #
> RSS 2.0
>
> My usage is very close to your pmwiki test case.  I'm trying to think
> of other differences between my setup and yours that might be causing
> your failure.  I also have the cookbook FeedLinks (see http://
> www.pmwiki.org/wiki/Cookbook/FeedLinks) enabled with the following
> configuration, but it shouldn't be required for the RSS feed itself
> to work:
>
> # Enable the feedlinks recipe.
> $EnableSitewideFeed = 1; # Offer feeds by group if this is disabled.
> $EnableRssLink = 1;
> $EnableAtomLink = 0;
> @include_once("$FarmD/cookbook/feedlinks.php");
>
>
> The only other difference that I'm noticing is the fact that both
> PmWiki and I use clean URLs (see http://www.pmwiki.org/wiki/Cookbook/
> CleanUrls) and you aren't.  Perhaps there is a problem in the
> feeds.php code.
>
> I can't think of anything else offhand for you to check on.  I know
> that when I was originally testing RSS feeds, I was just using
> "localhost" in my feed URL and the URL got alterred in a MAJOR way by
> something - I'm not sure if it was PmWiki code or Safari.  My feed
> URL (feed://localhost/tandcwiki/Site/AllRecentChanges?action=rss) got
> modified to something totally bizzare (http://allrecentchanges/?
> action=rss).
>
> Scott.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> http://host.pmichaud.com/pipermail/pmwiki-users/attachments/20060519/18e42681/attachment-0001.html
>
> ------------------------------
>
> Message: 8
> Date: Fri, 19 May 2006 12:56:44 +0200
> From: christian.ridderstrom at gmail.com
> Subject: Re: [pmwiki-users] History/trace of the pages already seen
> To: pmwiki-users at pmichaud.com
> Message-ID: <Pine.LNX.4.64.0605191254241.27142 at black01.md.kth.se>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Tue, 16 May 2006, Am?rico Albuquerque wrote:
>
>> Hello
>>
>> ----- Original Message -----
>> Subject: [pmwiki-users] History/trace of the pages already seen
>> Date: Fri, 12 May 2006 23:05:01 +0200
>> From: Jean-Philippe Georget
>>
>> > Hi,
>> >
>> > Is it possible to add the following feature in PMWiki ?
>> >
>> > I want to see the name of the 10 (for example) previous pages that
>> > I've just seen before.
>>
>> You can use tracetrail.php. Check it at
>> http://www.pmwiki.org/wiki/Cookbook/TraceTrail. Just copy it to the
>> cookbook directory and add require_once('cookbook/tracetrail.php');
>>
>> That recipe will give you a (:tracetrails:) markup that will do what you
>> want.
>
> Is this list of pages unique to the person browsing it?
>
> Where (how) do you get the list of last visited pages to show up?
>
> (I haven't tried the recipe, but (:tracetrails:) only seem to control
> wether a page should be remembered, not if it should be shown.)
>
> regards
> /Christian
>
> PS. I think something like this could become really useful, but right now
> I'd like some more info on how it works.
>
> -- 
> Christian Ridderstr?m, +46-8-768 39 44 
> http://www.md.kth.se/~chr
>
> ------------------------------
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>
>
> End of pmwiki-users Digest, Vol 11, Issue 50
> ********************************************
>
> 






More information about the pmwiki-users mailing list