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/f…
more info.
Sincerely,
Onur Safak
www.onursafak.com
On Wed, Jan 28, 2009 at 3:04 AM, Philip Beach <beachboy4231(a)gmail.com>wrote;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(a)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(a)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(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l