[Mediawiki-l] Redirect

Daniel Friesen dan_the_man at telus.net
Wed Jan 28 05:03:48 UTC 2009


Eugh... disturbing...
Does anyone remember that location headers are supposed to be ABSOLUTE urls.

~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://nadir-seen-fire.com]
-Nadir-Point (http://nadir-point.com)
-Wiki-Tools (http://wiki-tools.com)
-MonkeyScript (http://monkeyscript.nadir-point.com)
-Animepedia (http://anime.wikia.com)
-Narutopedia (http://naruto.wikia.com)
-Soul Eater Wiki (http://souleater.wikia.com)

Onur Safak 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
>>
>>     




More information about the MediaWiki-l mailing list