[pmwiki-users] New PmWiki user. Shorting URL problems
Mikael Nilsson
mini at nada.kth.se
Tue Dec 13 10:39:45 CST 2005
Maybe this helps, maybe not:
I use apache 1.3, and have in /etc/apache/conf.d/pmwiki:
Alias /wiki "/var/www/kmrwiki/pmwiki.php"
This way, all calls to /wiki gets routed to pmwiki.php. I suppose this
could be done using rewrites as well.
Also, in the webserver root directory (/var/www/kmrweb/) there is a
link
pmwiki -> ../kmrwiki/pub
so that http://kmr.nada.kth.se/pmwiki returns things from the pub
directory of pmwiki. This could also be done using alias or rewrites.
Then, I use
$ScriptUrl = 'http://kmr.nada.kth.se/wiki';
$PubDirUrl = 'http://kmr.nada.kth.se/pmwiki';
$EnablePathInfo = 1;
and it works for me!
/Mikael
tis 2005-12-13 klockan 00:16 +0100 skrev Malkavian:
> Hello,
>
> I am new here, I'm spanish and I was using mediawiki, but I have decided to
> change to PmWiki because I need a personal and friends webpage, not a
> encyclopedia... :S
>
> I have a problem shorting the URL, I have used the "Thecnique 3: Apache
> Configuration" from this web http://www.pmwiki.org/wiki/Cookbook/CleanUrls
> in my personal server, and I obtained
> http://malkavian.homelinux.org/pmwiki/index.php/Main/WikiSandbox URLs
>
> In /etc/apache2/sites-enabled/000-default I wrote:
> <Directory /var/www/pmwiki/>
> Options FollowSymLinks
> AllowOverride Options
> </Directory>
>
> And I made a link
> /etc/apache2/mods-enabled/rewrite.load -> ../mods-available/rewrite.load
>
> But if I define in local/config.php
>
> $ScriptUrl = '/pmwiki';
> $PubDirUrl = '/pmwiki/pub';
>
> (or the same with complete webpage route) I obtain
> http://malkavian.homelinux.org/pmwiki/Main/WikiSandbox links but they don't
> work and give me Error404.
>
> ¿What am I doing wrong?
>
> Thanks in advance :D
>
--
Plus ça change, plus c'est la même chose
More information about the pmwiki-users
mailing list