Skip to content

Instantly share code, notes, and snippets.

@cwebberOps
Created October 10, 2012 05:52
Show Gist options
  • Save cwebberOps/3863404 to your computer and use it in GitHub Desktop.
Save cwebberOps/3863404 to your computer and use it in GitHub Desktop.
Rewrite all the things!
RewriteEngine on
# Cellwall redirect for urls in publications
RewriteCond %{REQUEST_URI} ^/projects/Cellwall.*
RewriteRule ^/projects/Cellwall(.*)$ http://bioweb.ucr.edu/Cellwall$1 [L]
# GCD redirect for urls in publication
RewriteCond %{REQUEST_URI} ^/projects/GCD.*
RewriteRule ^/projects/GCD(.*)$ http://bioweb.ucr.edu/databaseWeb$1 [L]
RewriteCond %{REQUEST_URI} !^/\~.*
RewriteCond %{REQUEST_URI} !^/icons*
RewriteCond %{REQUEST_URI} !^/favicon.ico
RewriteRule ^(.*)$ http://www.bioinformatics.ucr.edu$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment