Chau Chee Yang | 2 Jun 2011 06:34
Picon

Apache rewrite rule with proxy flag fail to work for mediawiki service

I am testing on the apache rewrite rules with mediawiki.

I wish to include a wiki service under a namespace of my domain.

For example:

  http://mylan/wiki/Country

will show content of

  http://en.wikipedia.org/wiki/Country

My rule in .htaccess is

  RewriteRule ^/?wiki/(.*)$ http://en.wikipedia.org/wiki/$1 [P]

Access the URL from browser:

  http://mylan/wiki/Country

will show the content from wikipedia but the URL will switch to

  http://en.wikipedia.org/wiki/Country

I expect the URL remain as

  http://mylan/wiki/Country

Please advise on how to make it works.

(Continue reading)

Q | 2 Jun 2011 06:44
Picon

Re: Apache rewrite rule with proxy flag fail to work for mediawiki service

On 6/1/2011 11:34 PM, Chau Chee Yang wrote:
> I am testing on the apache rewrite rules with mediawiki.
> 
> I wish to include a wiki service under a namespace of my domain.
> 
> Please advise on how to make it works.
>

You dont, live-mirroring of Wikipedia is strongly discouraged. Download
a dump[1] instead.

1 - http://en.wikipedia.org/wiki/Wikipedia:Database_download
Chau Chee Yang | 2 Jun 2011 07:24
Picon

Re: Apache rewrite rule with proxy flag fail to work for mediawiki service

Thanks for reply.

I am not trying to mirror proxy en.wikipedia.org.  I am testing the 
Rewriterule.  I just use wikipedia.org as example to illustrate the 
situation I face.

On 2011-06-02 12:44 PM, Q wrote:
> On 6/1/2011 11:34 PM, Chau Chee Yang wrote:
>> I am testing on the apache rewrite rules with mediawiki.
>>
>> I wish to include a wiki service under a namespace of my domain.
>>
>> Please advise on how to make it works.
>>
>
> You dont, live-mirroring of Wikipedia is strongly discouraged. Download
> a dump[1] instead.
>
> 1 - http://en.wikipedia.org/wiki/Wikipedia:Database_download

Gmane