Skip to content
Snippets Groups Projects
.htaccess 718 B
Newer Older
  • Learn to ignore specific revisions
  • CheckSpelling Off
    
    Thomas Wood's avatar
    Thomas Wood committed
    Options -Indexes
    
    
    RewriteEngine on
    
    
    # Rewrite former site subdomain pages to new site pages
    RewriteCond %{HTTP_HOST} =www-rw.doc.ic.ac.uk
    
    Sacha-Elie Ayoun's avatar
    Sacha-Elie Ayoun committed
    RewriteRule ^ http://vtss.doc.ic.ac.uk/research/javascript.html [R=301,L]
    
    RewriteCond %{HTTP_HOST} =www-lrr.doc.ic.ac.uk
    
    Sacha-Elie Ayoun's avatar
    Sacha-Elie Ayoun committed
    RewriteRule ^papers.html http://vtss.doc.ic.ac.uk/publications/ [R=301,L]
    
    RewriteCond %{HTTP_HOST} =www-lrr.doc.ic.ac.uk
    
    Sacha-Elie Ayoun's avatar
    Sacha-Elie Ayoun committed
    RewriteRule ^ca($|/) http://vtss.doc.ic.ac.uk/research/concurrency.html [R=301,L]
    
    # Bump any other subdomain request that gets here over to the main psvg site
    
    Sacha-Elie Ayoun's avatar
    Sacha-Elie Ayoun committed
    RewriteCond %{HTTP_HOST} !=vtss.doc.ic.ac.uk
    RewriteRule ^(.*)$ http://vtss.doc.ic.ac.uk/$1 [R=301,L]
    
    Thomas Wood's avatar
    Thomas Wood committed
    ErrorDocument 403 /403.html
    
    Thomas Wood's avatar
    Thomas Wood committed
    ErrorDocument 404 /404.html