<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteCond %{REQUEST_URI}
#RewriteRule	^(.*)$ http://www.accelereyes.com/products/arrayfire [R=301,L]
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} /wiki/libjacket/.* [NC]
RewriteRule ^(.*)$ http://www.accelereyes.com/products/arrayfire [R=301,L]

RewriteCond %{QUERY_STRING} (.*action=.*)
RewriteCond %{QUERY_STRING} (.*oldid=.*)
RewriteRule .* http://wiki.accelereyes.com?

RewriteCond %{QUERY_STRING} (.*diff=.*)
RewriteRule .* http://wiki.accelereyes.com?

RewriteCond %{QUERY_STRING} Barri-CUDA
RewriteRule .* http://wiki.accelereyes.com?

RewriteCond %{REQUEST_URI} Barri-CUDA
RewriteRule .* http://wiki.accelereyes.com?

RewriteCond %{QUERY_STRING} action=edit
RewriteRule .* http://wiki.accelereyes.com?


RewriteCond %{REQUEST_URI} !^/index.php/Special:Search
RewriteCond %{REQUEST_URI} !^(.*Special:UserLogout.*)
RewriteCond %{REQUEST_URI} !^(.*Special:UserLogin.*)
RewriteCond %{REQUEST_URI} !^(.*Special:Upload)
RewriteCond %{REQUEST_URI}  ^(.*Special:.*)
RewriteCond %{REQUEST_URI} !^(.*Nightly*)
RewriteRule .* http://wiki.accelereyes.com?

## Catch a trick...
RewriteCond %{QUERY_STRING} !^(.*Special:UserLogout.*)
RewriteCond %{QUERY_STRING} !^(.*Special:UserLogin.*)
RewriteCond %{QUERY_STRING} !^(.*Special:Upload)
RewriteCond %{QUERY_STRING} !^(.*Special:Pdf[Pp]rint.*)
RewriteCond %{QUERY_STRING} ^(.*Special:.*)
RewriteCond %{QUERY_STRING} !^(.*Nightly*)
RewriteRule .* http://wiki.accelereyes.com?
</IfModule>
