Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Edited .htaccess to point to /2012/06/14/!
Browse files Browse the repository at this point in the history
  • Loading branch information
tombaker committed Jun 11, 2012
1 parent b68b6e9 commit 594615d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions build/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ AddType text/turtle .ttl
<ifModule mod_rewrite.c>
# Rewrite engine setup
RewriteEngine On
#RewriteBase /2012/05/22

# make sure we don't have the file or a directory index to serve
# the rest fails to redirect if we do
Expand All @@ -34,14 +33,14 @@ AddType text/turtle .ttl
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
# redirects all requests for individual vocabs to /dcmi-terms/
# which should serve /dcmi-terms/index.html
RewriteRule ^(dcelements)$ HTTP://%{HTTP_HOST}/documents/2012/06/01/dcmi-terms\?v=elements [R=303,L,NE,NC]
RewriteRule ^(dcterms)$ HTTP://%{HTTP_HOST}/documents/2012/06/01/dcmi-terms\?v=terms [R=303,L,NE,NC]
RewriteRule ^(dctype)$ HTTP://%{HTTP_HOST}/documents/2012/06/01/dcmi-terms\?v=dcmitype [R=303,L,NE,NC]
RewriteRule ^(dcam)$ HTTP://%{HTTP_HOST}/documents/2012/06/01/dcmi-terms\?v=dcam [R=303,L,NE,NC]
RewriteRule ^(dcelements)$ HTTP://%{HTTP_HOST}/documents/2012/06/14/dcmi-terms\?v=elements [R=303,L,NE,NC]
RewriteRule ^(dcterms)$ HTTP://%{HTTP_HOST}/documents/2012/06/14/dcmi-terms\?v=terms [R=303,L,NE,NC]
RewriteRule ^(dctype)$ HTTP://%{HTTP_HOST}/documents/2012/06/14/dcmi-terms\?v=dcmitype [R=303,L,NE,NC]
RewriteRule ^(dcam)$ HTTP://%{HTTP_HOST}/documents/2012/06/14/dcmi-terms\?v=dcam [R=303,L,NE,NC]

# either of these catch-alls means there's never a 404
# any unservable request will serve dcmi-terms/index.html
RewriteRule ^(.*)$ HTTP://%{HTTP_HOST}/documents/2012/06/01/dcmi-terms/ [R=303,L,NE]
RewriteRule ^(.*)$ HTTP://%{HTTP_HOST}/documents/2012/06/14/dcmi-terms/ [R=303,L,NE]

#uncomment either the rule above or the rule below to control the default

Expand Down

0 comments on commit 594615d

Please sign in to comment.