[Mediawiki-l] Apache rewrite rule with proxy flag fail to work for mediawiki service
Chau Chee Yang
cychau at gmail.com
Thu Jun 2 04:34:18 UTC 2011
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.
Thank you.
--
Best Regards,
Chau Chee Yang
More information about the MediaWiki-l
mailing list