Comments (8)
I already created a gh-pages
branch. A website now lives at http://tdwg.github.io/dwc, but I can always remove it.
from dwc.
We only need to rewrite (not a redirect, right?) the dwc subpath of the TDWG site. That exists already I believe and rewrites currently to google code, so its simple to change the rule to use github instead
from dwc.
I believe we are ready to do so, no?
On Fri, Nov 28, 2014 at 2:26 PM, Markus Döring [email protected]
wrote:
We only need to rewrite (not a redirect, right?) the dwc subpath of the
TDWG site. That exists already I believe and rewrites currently to google
code, so its simple to change the rule to use github instead—
Reply to this email directly or view it on GitHub
#49 (comment).
from dwc.
Yep, only the subdomain dwc
.
gh-pages
with a custom domain such as rs.tdwg.org/dwc
need a CNAME
record in the root, otherwise it will be a redirect. I haven't done that yet for a project page, but the documentation should be out there.
from dwc.
dwc is not the subdomain, it is a subdirectory. The subdomain is rs.tdwg.org. That we cannot reassign in the DNS (via a CNAME entry) as it effects the entire TDWG resource subdomain rs.tdwg.org.
The difference between a redirect and rewrite is that the redirect returns a 3xx http status to the client with the new location to fetch from. So the client does 2 calls and the browser will show the github URL at the end.
The rewrite on the other hand is a proxy rule on the tdwg server that kind of fetches the data from github but pipes it through to the client directly so a) the client sees an http 200 and there is no second http call, b) the client sees the rs.tdwg.org url still and no github one.
from dwc.
@mdoering, did you close the issue because the site is now served by GitHub pages or because it won't work with the subdomain and all?
from dwc.
Oh, I did not mean to close the issue at all! That was accidental ...
from dwc.
I have modified the apache config on rs.tdwg.org to use github pages for all rewrites. The rewrites to dwctype.rdf has been removed:
### DWC ###
# Content Negotiation defaults to html if rdf/xml is not requested
# dwc attributes
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^/dwc/terms/attributes/(.*)$ http://tdwg.github.io/dwc/terms/attributes/dwcattributes.rdf [R=303] RewriteRule ^/dwc/terms/attributes/(.*)$ http://tdwg.github.io/dwc/terms/attributes/dwcattributes.rdf#$1 [NE,R=303] #NE,R,L,P]
# dwc terms
RewriteCond %{HTTP_ACCEPT} application/rdf\+xml
RewriteRule ^/dwc/terms/([a-zA-Z0-9-]*)$ http://tdwg.github.io/dwc/rdf/dwcterms.rdf [R=303]
RewriteRule ^/dwc/terms/([a-zA-Z0-9-]+)$ http://tdwg.github.io/dwc/terms/index.htm#$1 [NE,R=303] #NE,R,L,P]
# proxy all other /dwc URLs from github pages:
RewriteRule ^/dwc$ /dwc/ [R=301,L]
RewriteRule ^/dwc/$ http://tdwg.github.io/dwc/index.htm [NE,L,P]
RewriteRule ^/dwc/(.+)/$ http://tdwg.github.io/dwc/$1/index.htm [NE,L,P]
RewriteRule ^/dwc/(.+)$ http://tdwg.github.io/dwc/$1 [NE,L,P]
<Location /dwc>
# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
AddType text/xml .xml
AddType text/xml .xsd
AddType text/html .html
AddType text/html .htm
AddType text/plain .txt
</Location>
from dwc.
Related Issues (20)
- Improve term indices to be more complete? HOT 4
- Change examples for term - occurrenceID HOT 23
- Change term - identifiedBy HOT 11
- Change term - identificationReferences
- Section 1.4.3 of the RDF Guide should be updated to include other "iri" namespaces.
- rowType no longer resolves in Darwin Core Text Guide HOT 2
- Date on QRG needs to be updated to 2023-09-13 HOT 1
- Fix examples for most classes HOT 11
- Minor: Typo in a comment HOT 2
- Explain how to programatically access a term description HOT 2
- multiple vernacular names for a taxon? HOT 2
- New Term - substrate HOT 1
- Change term - naturalDispersal controlled value (Pathway CV)
- Change term - otherTransport controlled value from Pathway CV
- Change term - controlled value transportContaminant from Pathway CV
- Change term - nativeReintroduced controlled value from establishmentMeans CV
- Change term - lithostratigraphicTerms
- Change term - georeferenceRemarks
- Change term - latestEonOrHighestEonothem
- Change term - dc:type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dwc.