Giter Club home page Giter Club logo

Comments (3)

msporny avatar msporny commented on July 21, 2024

In general it seems like a good strategy. Keep in mind apache rewrite minutae. I think if you get rid of the directory rewrite, the following /may not/ work:

https://w3id.org/people/bsletten <--- works
https://w3id.org/people/bsletten/ <--- might not work?

The second is only a problem if the following was also desired functionality:

https://w3id.org/people/bsletten/pets/loki

So, you may want to firm up the rules such that:

  1. IF there is an entry in /people/.htaccess for the person, AND
  2. there is a /people/DIR/.htaccess file, AND
  3. the /people/DIR/.htaccess only contains one rewrite rule for ^$, THEN throw an error

from w3id.org.

 avatar commented on July 21, 2024

No objection, here, Brian.

Regards,

Dave

http://about.me/david_wood

On Jan 4, 2016, at 09:53, Manu Sporny [email protected] wrote:

In general it seems like a good strategy. Keep in mind apache rewrite minutae. I think if you get rid of the directory rewrite, the following /may not/ work:

https://w3id.org/people/bsletten <--- works
https://w3id.org/people/bsletten/ <--- might not work?

The second is only a problem if the following was also desired functionality:

https://w3id.org/people/bsletten/pets/loki

So, you may want to firm up the rules such that:

IF there is an entry in /people/.htaccess for the person, AND
there is a /people/DIR/.htaccess file, AND
the /people/DIR/.htaccess only contains one rewrite rule for ^$, THEN throw an error

Reply to this email directly or view it on GitHub.

from w3id.org.

bsletten avatar bsletten commented on July 21, 2024

Upon further reflection, I am unconvinced this should be an error, maybe just a warning. I'm not sure I'll know what is new and what isn't. If we have a scenario like you describe above and you edit something, I am not sure I'll know whether you are attempting something new or editing something existent. Without having access to the account that created the URL and the account doing the edit, I don't know that I can resolve the two scenarios so a warning might get our attention. But, if we have existing versions like we have, the warning will be firing all the time and will therefore be useless. I'm going to have to noodle on this some more.

from w3id.org.

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.