Am 28.05.2010 22:03, schrieb OQ:
> On Fri, May 28, 2010 at 2:58 PM, Lukas Haase<[email protected]>  wrote:
>> Hi,
>>
>> My rewrite rule just maps the address "/" internally to the main page.
>> The user should NOT be redirected. This is obviously done by MediaWiki.
>>
>
> It can't be both.
> Either
> A) You moved mediawiki to /w/ in which accessing / shouldn't ever
> reach mediawiki

This is obviously done by MediaWiki (I guess with header("Location ...")

> B) Or you didn't move mediawiki to /w/ even though you say you did.

I did:

$ ls -la
insgesamt 20
drwxr-xr-x  3 luke www-data  4096 28. Mai 23:44 .
drwxr-xr-x 18 luke www-data  4096 27. Mai 23:42 ..
-rw-r--r--  1 luke www-data  335  28. Mai 23:44 .htaccess
drwxr-xr-x 16 luke www-data  4096 28. Mai 23:32 w
$ cat .htaccess
RewriteEngine on
RewriteRule ^$   /wiki/Main_Page

And in the webserver config:

Alias /wiki /srv/www/w/index.php


Ok, once more: My rewrite-rule in the .htaccess *internally* hides 
"/wiki/Main_Page" behind "/". No HTTP redirect is done!

Proof:

RedirectRule ^$ /test.html

$ echo hello, world > test.html

Accessing this yields:

hello, world

and the client browser states http://www.example.com and *NOT* 
http://www.example.com/test.html. So my redirect does NOT do ANY HTTP 
redirects!

But MediaWiki seems to do so afterwards ...

Again: I *do* want my Wiki be accessible at http://www.example.com (in 
some way) but it should not (HTTP) redirect to something else (at least 
for the start page).

Regards,
Luke

_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to