Skip to content
Snippets Groups Projects
Commit 8b372039 authored by Thomas Wood's avatar Thomas Wood
Browse files

htaccess: forward -dev subdomains over to the psvg-dev

parent 471c6ec4
No related branches found
No related tags found
Loading
CheckSpelling Off
RewriteEngine on
RewriteCond %{HTTP_HOST} =www-rw.doc.ic.ac.uk [OR]
RewriteCond %{HTTP_HOST} =www-rw-dev.doc.ic.ac.uk
# Rewrite former site subdomain pages to new site pages
RewriteCond %{HTTP_HOST} =www-rw.doc.ic.ac.uk
RewriteRule . http://psvg.doc.ic.ac.uk/research/javascript.html [R=301,L]
RewriteCond %{HTTP_HOST} =www-lrr.doc.ic.ac.uk [OR]
RewriteCond %{HTTP_HOST} =www-lrr-dev.doc.ic.ac.uk
RewriteCond %{HTTP_HOST} =www-lrr.doc.ic.ac.uk
RewriteRule ^papers.html http://psvg.doc.ic.ac.uk/publications/ [R=301,L]
RewriteCond %{HTTP_HOST} =www-lrr.doc.ic.ac.uk [OR]
RewriteCond %{HTTP_HOST} =www-lrr-dev.doc.ic.ac.uk
RewriteCond %{HTTP_HOST} =www-lrr.doc.ic.ac.uk
RewriteRule ^ca($|/) http://psvg.doc.ic.ac.uk/research/concurrency.html [R=301,L]
# And for -dev subdomains for testing purposes
RewriteCond %{HTTP_HOST} =www-rw-dev.doc.ic.ac.uk
RewriteRule . http://psvg-dev.doc.ic.ac.uk/research/javascript.html [R=301,L]
RewriteCond %{HTTP_HOST} =www-lrr-dev.doc.ic.ac.uk
RewriteRule ^papers.html http://psvg-dev.doc.ic.ac.uk/publications/ [R=301,L]
RewriteCond %{HTTP_HOST} =www-lrr-dev.doc.ic.ac.uk
RewriteRule ^ca($|/) http://psvg-dev.doc.ic.ac.uk/research/concurrency.html [R=301,L]
# Bump any other subdomain request that gets here over to the main psvg site
RewriteCond %{HTTP_HOST} !=psvg.doc.ic.ac.uk
RewriteCond %{HTTP_HOST} !=psvg-dev.doc.ic.ac.uk
RewriteCond %{HTTP_HOST} !=www-rr-dev.doc.ic.ac.uk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment