On 26/12/12 04:05, Jeffrey T. Darlington wrote:
The following politely redirects all requests for Special:Export back to
the wiki's root (main page), rather than sending a forbidden error.
Note that (a) in this example, I'm using the "Short URL" setup where
/wiki is the short path and /wikix is the raw path; (b) the first rule
performs the redirect for the short URL; and (c) the second and third
lines perform the raw URL redirect, which requires poking around on the
query string.

RewriteRule ^/wiki/Special:Export  /wiki/   [R=permanent,L]
RewriteCond %{QUERY_STRING}        Special:Export
RewriteRule ^/wikix/.*             /wiki/   [R=permanent,L]

This won't stop someone from accessing localized URL of Special:Export.


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

Reply via email to