Comments (5)
Hi Nandana,
Yes, I don’t see any reason this wouldn’t work unless the Apache wasn’t compiled with RewriteCond support. Try it :)
Regards,
Dave
On Feb 24, 2015, at 12:15, Nandana Mihindukulasooriya [email protected] wrote:
I wanted to ask whether w3id supports/permits to do URL rewriting with conditions for content negotiation, for instance using RewriteCond http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond.
My usecase is to host my ontology in Github pages and use w3id URL as a permanent identifier. Further, I want to have content negotiation on that URL but unfortunately Github pages doesn't support content negotiation. However, if I can do this at the URL rewrite stage I can still properly do what I wanted to do.
For example, something like the following.
RewriteCond %{HTTP:Accept} text/turtle
RewriteRule ^foo$ http://proj.github.io/vocab/foo.ttl http://proj.github.io/vocab/foo.ttl [R=303,L]RewriteCond %{HTTP:Accept} application/rdf+xml
RewriteRule ^foo$ http://proj.github.io/vocab/foo.xml http://proj.github.io/vocab/foo.xml [R=303,L]RewriteRule ^foo$ http://proj.github.io/vocab/foo.html http://proj.github.io/vocab/foo.html [R=303,L]
P.S. I am not an expert on HTTPD config, so there may be a better way to do this.
—
Reply to this email directly or view it on GitHub #65.
from w3id.org.
Your best bet is to set up a local server to test out configs. Another project has some content negotiation support that might be useful though I've never tried it. If you do come up with a good solution let us know and maybe we can start some docs.
https://github.com/perma-id/w3id.org/blob/master/isa/.htaccess
from w3id.org.
Hi David,
On Feb 24, 2015, at 13:00, David I. Lehn [email protected] wrote:
Your best bet is to set up a local server to test out configs. Another project has some content negotiation support that might be useful though I've never tried it. If you do come up with a good solution let us know and maybe we can start some docs.
That wouldn’t answer the question of whether RewriteCond support is compiled into the w3id.org http://w3id.org/ Apache.
Regards,
Dave
from w3id.org.
mod_rewrite
is enabled, it's used by almost every .htaccess
file on the site. If there is something missing that's needed, we can enable it.
from w3id.org.
Thanks a lot Dave and David!
I will do a pull request to try it out.
from w3id.org.
Related Issues (20)
- Scalable id storage
- Add an "How-To-Test" to the description HOT 1
- warning on clone: case sensitive/insensitive file systems HOT 1
- allow browser (html) dereferencing of i-adopt terms to abuse the available local fragment identifiers HOT 1
- bad forward from w3id.org/mediatype/ HOT 4
- W3C Caused by: com.apicatalog.jsonld.JsonLdError: Unexpected response code [429] HOT 1
- Broken link to openspring.net under Management on the w3id.org home page HOT 1
- dggs.org broken HOT 4
- Update w3id.org homepage content with one from the latest README.md HOT 1
- add redirect test workflow / github action
- How to redirect to Ontology documentation with Widoco HOT 3
- Remove directory under /italia HOT 5
- Common format for metadata and test specifications HOT 5
- Redirection issue by certificate when importing in Protege HOT 7
- Verifiable Credential JWS2020 incorrect content-type HOT 6
- build upon @MattBlissett 's gensc PR #3946
- Additional requested static re-directions for `gensc` HOT 1
- add @turbomam as maintainer of `gensc` namespace
- Documentation of the top-level Apache httpd configuration HOT 2
- w3id.org should not redirect on OPTIONS HOT 4
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 w3id.org.