[pmwiki-users] Re: Clean URIs and conflicts with other uses of $ScriptUrl
chr at home.se
chr at home.se
Wed Jan 26 07:25:16 CST 2005
On Wed, 26 Jan 2005, Robin wrote:
> On Wednesday 26 January 2005 04:06, chr at home.se wrote:
> > Thanks for the tip. I added the following
> >
> > RedirectMatch 301 ^/$ http://mydomain.se/wiki/pmwiki.php
> >
> > instead and also made a not of this tip here:
> Err, a bit I missed, in my httpd.conf I have:
> AliasMatch ^/([A-Z].*) /var/www/wiki/pmwiki.php/$1
>
> So the result is that anyone going to http://www.kallisti.net.nz gets
> redirected to ...net.nz/Main/HomePage, and the alias silently maps that
> onto the pmwiki.php script. This way no reference to pmwiki.php is seen.
> If you do the redirect you mention, people will end up at
> mydomain.se/wiki/pmwiki.php/Main/HomePage or similar (at least, I think
> so)
Yes, using
RedirectMatch 301 ^/$ http://mydomain.se/wiki/pmwiki.php
and going to URI http://mydomain.se will redirect to
http://mydomain.se/wiki/pmwiki.php
where pmwiki.php will show the default page of the wiki.
The drawback here is (as you say) that there's 'wiki/pmwiki.php' in the
URI that the user see. However, when the user clicks on a link in a page
this will disappar, i.e. [[Main/some page]] will link to
http://mydomain.se/Main/SomePage
so the problem with the 'wiki/pmwiki.php' is not that big.
Can you put 'AliasMatch' in your .htaccess?
I guess this is still a confused topic, Patrick - any thoughts from you?
/Christian
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list