[Clipart] site redirecting to wiki

Jon Phillips jon at rejon.org
Sat Jun 2 10:37:10 PDT 2007


Heya, I got the site to redirect to the wiki right now...we are
OSUOSL.org to give us the go ahead so we can move to their
infrastructure, which means the big times because we need their database
cluster and heavy duty maintenance to keep going.

Until then, could someone make a message on our wiki that says an
update.

Also, I just put a redirect up, but would like one that takes any query
and redirects to the /wiki on our site...you must be careful though
because this can redirect too many times...

Here is our current .htaccess:


###

php_value max_input_time -1
php_value max_execution_time -1
php_value memory_limit 80M
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value arg_separator.output &
php_flag session.use_trans_sid off
php_flag magic_quotes_gpc off

# php configs http://www.php.net/manual/en/ini.core.php#ini.memory-limit
# http://www.php.net/manual/en/ini.php#ini.list

# Stop morons that are hammering the site
<Limit GET>
order deny,allow
deny from 59.116.0.0/16
</Limit>

#RedirectMatch ^.*$ http://openclipart.org/wiki
Redirect /index.php http://openclipart.org/wiki


RewriteEngine on

# anything that contains a dot without a colon should be left alone
RewriteRule ^wiki/(edit)/(.*)$ /wiki/index.php?action=$1&title=$2
[L,QSA]
RewriteRule ^wiki/insert/(.*)$ /wiki/index.php?action=edit&title=$1
[L,QSA]
RewriteRule ^wiki/(watch)/(.*)$ /wiki/index.php?action=$1&title=$2
[L,QSA]
RewriteRule ^wiki/(delete)/(.*)$ /wiki/index.php?action=$1&title=$2
[L,QSA]
RewriteRule ^wiki/(protect)/(.*)$ /wiki/index.php?action=$1&title=$2
[L,QSA]
RewriteRule ^wiki/(history)/(.*)$ /wiki/index.php?action=$1&title=$2
[L,QSA]


RewriteRule ^wiki/[^:]*\. - [L]
# anything that contains a slash without a colon should be left alone
RewriteRule ^wiki/[^:]*\/ - [L]
# redirect to main page
RewriteRule ^wiki/*$ /wiki/index.php?title=Main_Page [L,QSA]
# anything else is to be treated as a title
RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
# anything that contains a slash is to be left alone


RewriteCond %{HTTP_REFERER}    ^.+QihooBot.+$
RewriteRule ^(.*)$ [G]

RewriteCond %{USER_AGENT}    ^.+QihooBot.+$
RewriteRule ^(.*)$ [G]


###

Jon

-- 
Jon Phillips

San Francisco, CA
USA PH 510.499.0894
jon at rejon.org
http://www.rejon.org

MSN, AIM, Yahoo Chat: kidproto
Jabber Chat: rejon at gristle.org
IRC: rejon at irc.freenode.net




More information about the clipart mailing list