All pastes #19562 Raw Edit

Miscellany

public text v1 · immutable
#19562 ·published 2005-08-08 19:01 UTC
rendered paste body
###############################################################################
# what follows is a list of redirects for NHPRv2 to NHPRv3 (Drupal).          #
###############################################################################
Redirect /appeared_on_npr/all_things_considered               http://nhpr.org/?q=node/9502
Redirect /appeared_on_npr/morning_edition                     http://nhpr.org/?q=node/9501
Redirect /static/programs/specials/election_2004/index.php    http://nhpr.org/?q=node/9506
Redirect /static/programs/specials/fp_wildlife.php            http://nhpr.org/?q=node/9503
Redirect /static/programs/specials/nclb/index.php             http://nhpr.org/?q=node/9505
Redirect /static/programs/specials/project_health.php         http://nhpr.org/?q=node/9504
Redirect /static/programs/specials/the_current/index.php      http://nhpr.org/?q=node/9508
Redirect /static/programs/specials/sa/index.php               http://nhpr.org/?q=node/9507
Redirect /view_archives/1/                                    http://nhpr.org/?q=taxonomy/term/15000&page=0
Redirect /view_archives/3/                                    http://nhpr.org/?q=taxonomy/term/15001&page=0
Redirect /view_archives/4/                                    http://nhpr.org/?q=taxonomy/term/15002&page=0
Redirect /view_archives/6/                                    http://nhpr.org/?q=taxonomy/term/15003&page=0
Redirect /view_archives/7/                                    http://nhpr.org/?q=taxonomy/term/15004&page=0
Redirect /view_content/                                       http://nhpr.org/?q=node/
Redirect /view_content_more/                                  http://nhpr.org/?q=node_neighbors/
Redirect /view_keyword/                                       http://nhpr.org/?q=taxonomy/term/
Redirect /view_summary/1/                                     http://nhpr.org/?q=taxonomy/term/15000
Redirect /view_summary/3/                                     http://nhpr.org/?q=taxonomy/term/15001
Redirect /view_summary/4/                                     http://nhpr.org/?q=taxonomy/term/15002
Redirect /view_summary/6/                                     http://nhpr.org/?q=taxonomy/term/15003
Redirect /view_summary/7/                                     http://nhpr.org/?q=taxonomy/term/15004
RedirectMatch /view_kw_by_program/(.*)/1/                     http://nhpr.org/?q=taxonomy/term/$1,15000
RedirectMatch /view_kw_by_program/(.*)/3/                     http://nhpr.org/?q=taxonomy/term/$1,15001
RedirectMatch /view_kw_by_program/(.*)/4/                     http://nhpr.org/?q=taxonomy/term/$1,15002
RedirectMatch /view_kw_by_program/(.*)/6/                     http://nhpr.org/?q=taxonomy/term/$1,15003
RedirectMatch /view_kw_by_program/(.*)/7/                     http://nhpr.org/?q=taxonomy/term/$1,15004
RedirectMatch /view_rss/(.*)                                  http://nhpr.org/?q=taxonomy/term/$1/feed/0

###############################################################################
# Apache/PHP/Drupal settings:                                                 #
###############################################################################

# Protect files and directories from prying eyes.
<Files ~ "(\.(inc|module|pl|sh|sql|theme|engine|xtmpl)|scripts|updates)$">
  Order deny,allow
  Deny from all
</Files>

# Set some options.
Options -Indexes
Options +FollowSymLinks

# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

# Override PHP settings. More exist in sites/default/settings.php, but
# the following cannot be changed at runtime. The first IfModule is
# for Apache 1.3, the second for Apache 2.
<IfModule mod_php4.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
</IfModule>

<IfModule sapi_apache2.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
</IfModule>

# Reduce the time dynamically generated pages are cache-able.
<IfModule mod_expires.c>
  ExpiresByType text/html A1
</IfModule>

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !/blogs.*
  RewriteCond %{REQUEST_FILENAME} !/board.*
  RewriteCond %{REQUEST_FILENAME} !/calendar.*
  RewriteCond %{REQUEST_FILENAME} !/images.*
  RewriteCond %{REQUEST_FILENAME} !/static.*
  RewriteCond %{REQUEST_FILENAME} !/tmpl.*
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>