[Mediawiki-l] Redirect

Philip Beach beachboy4231 at gmail.com
Wed Jan 28 01:22:29 UTC 2009


That gives me the same result as the previous suggestion.

Requests to mysite.com are redirected to mysite.com/wiki but requests to
mysite.com/Main_page are not found, instead of being redirected to
mysite.com/wiki/Main_page, as I would like.



On Tue, Jan 27, 2009 at 8:13 PM, Benjamin Lees <emufarmers at gmail.com> wrote:

> Alias /index.php /var/www/w/index.php
>
> On Tue, Jan 27, 2009 at 8:04 PM, Philip Beach <beachboy4231 at gmail.com
> >wrote:
>
> > Thanks, that works. But what if someone were to type mysite.com/pagename
> ,
> > that won't redirect them to mysite.com/wiki/pagename.
> >
> > Do you know how to do that?
> >
> > On Tue, Jan 27, 2009 at 7:50 PM, Onur Safak <
> > wikimedialist.007 at onursafak.com
> > > wrote:
> >
> > > Hey, here you go :
> > >
> > > <?php
> > > header( 'Location: wiki/' ) ;
> > > ?>
> > >
> > > That's all you need to put in your index file at your web root.
> > >
> > > Sincerely,
> > >
> > > Onur Safak
> > >
> > >
> > > On Wed, Jan 28, 2009 at 2:17 AM, Philip Beach <beachboy4231 at gmail.com
> > > >wrote:
> > >
> > > > Hey all,
> > > >
> > > > Can anyone help me write an apache alias/redirect to get users from
> > > > mysite.com to mysite.com/wiki
> > > >
> > > > I am using pretty URL's so /wiki is actually /w using this apache
> > alias:
> > > > Alias /wiki /var/www/w/index.php
> > > >
> > > > However, this requires users to click the "w" directory to enter the
> > > site,
> > > > very bad.
> > > >
> > > > Thanks
> > > > _______________________________________________
> > > > MediaWiki-l mailing list
> > > > MediaWiki-l at lists.wikimedia.org
> > > > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> > > >
> > > _______________________________________________
> > > MediaWiki-l mailing list
> > > MediaWiki-l at lists.wikimedia.org
> > > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> > >
> > _______________________________________________
> > MediaWiki-l mailing list
> > MediaWiki-l at lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>


More information about the MediaWiki-l mailing list