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
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@gmail.comwrote:
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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Alias /index.php /var/www/w/index.php
On Tue, Jan 27, 2009 at 8:04 PM, Philip Beach beachboy4231@gmail.comwrote:
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@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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@gmail.com wrote:
Alias /index.php /var/www/w/index.php
On Tue, Jan 27, 2009 at 8:04 PM, Philip Beach <beachboy4231@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@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Philip Beach Sent: Tuesday, January 27, 2009 7:22 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Redirect
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.
See:
http://www.mediawiki.org/wiki/Manual:Short_URL#URL_like_-_wiki.example.c om.2FPage_title
Notice that it isn't recommended to do this with your root. It'll mention why in the link.
V/r,
Ryan Lane
Dear All, How do I refresh Mediawiki Main Page in every 5/10 seconds automatically (without clicking refresh icon of explorer)? Do I need to use any script or any extension or any other? Please kindly informe me. Regards,
-- Mohammad Towfiqul Islam wants to know:
How do I refresh my main page every couple seconds?
Could you let us know what you are trying to accomplish? You can use a meta tag to make a page refresh at whatever number of seconds you want, but it seems like that would really annoy your users. So we might be able to help more if you tell us what you are trying to do and what version of MediaWiki you are using!
Good luck, -Courtney
Oh, well you could forward every request to rootdir, to your subfolder using an alias, but then it would be better putting the wiki on the root folder, as you wouldn't be able to use your root dir this would make it pointless to keep the wiki in a subfolder.
So you can forward your 404 pages to a better place, wiki subfolder, like wikipedia does. You could use the code I've sent before with parameters but that would make the user think it's the right syntax, making them always use that syntax and wait more to enter the page everytime. So mediawiki uses valid 404 pages, showing the user it was a wrong page, and forwarding them with an http refresh tag, which you can give any time delay.
See http://www.devarticles.com/c/a/Apache/Custom-Error-404-Documents-with-PHP/fo... more info.
Sincerely,
Onur Safak www.onursafak.com
On Wed, Jan 28, 2009 at 3:04 AM, Philip Beach beachboy4231@gmail.comwrote:
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@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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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@gmail.comwrote:
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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org