Git Product home page Git Product logo

Comments (8)

peterdesmet avatar peterdesmet commented on June 17, 2024

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.

mdoering avatar mdoering commented on June 17, 2024

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.

tucotuco avatar tucotuco commented on June 17, 2024

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.

peterdesmet avatar peterdesmet commented on June 17, 2024

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.

mdoering avatar mdoering commented on June 17, 2024

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.

peterdesmet avatar peterdesmet commented on June 17, 2024

@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.

mdoering avatar mdoering commented on June 17, 2024

Oh, I did not mean to close the issue at all! That was accidental ...

from dwc.

mdoering avatar mdoering commented on June 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.