Giter Club home page Giter Club logo

Comments (4)

fivefilters avatar fivefilters commented on July 22, 2024 2

Thanks @j0k3r. In that case, until the situation improves, we can summarise the file naming advice as:

Use example.com.txt for

Use .example.com.txt for

  • sport.example.com
  • news.example.com
  • environment.example.com
  • etc.

Use sport.example.com.txt to target just that sub-domain:

  • sport.example.com

Note: .example.com.txt will not match www.example.com or example.com

I've now added this to the Readme

from ftr-site-config.

j0k3r avatar j0k3r commented on July 22, 2024

.example.com.txt wil work for any subdomain of example.com: video.example.com, news.example.com, www.example.com, m.example.com, etc.

www.example.com.txt will only work for www.example.com.

In fact, it's not a problem to add .example.com.txt instead of www.example.com.txt it's just less accurate.

I fixed one of your added file yesterday but missed other one.

from ftr-site-config.

fivefilters avatar fivefilters commented on July 22, 2024

The confusion might be around the way this is handled in Full-Text RSS. In the past I've edited pull requests where, e.g. .example.com.txt was targeting www.example.com (in test_url) because in Full-Text RSS this won't match www.example.com. I wonder if that's what's confused @burkemw3. The www subdomain is treated as a special case so example.com.txt is needed to match www.example.com and example.com. .example.com.txt will match everything else except the above two.

This also creates a problem when a site has essentially the same layout under example.com and all its subdomains. We can't use one file to target the site, we have to duplicate the contents of example.com.txt in .example.com.txt.

This isn't very intuitive, and I've realised that most people assume .example.com.txt will match all variations (example.com, www.example.com, news.example.com, etc.).

@j0k3r if I'm understanding correctly in your case (Graby/Wallabag) the difference with what I've described is that .example.com.txt will match www.example.com. Is that right?

from ftr-site-config.

j0k3r avatar j0k3r commented on July 22, 2024

@fivefilters I think I made a confusion by replying too fast. I use the same behavior as in Full-Text RSS (not what I said in my minimized comment)

from ftr-site-config.

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.