How does this module compare to the Persistent URL module (http://drupal.org/project/purl)? Persistent URL says it supports:

  • Path prefixes: http://example.com/foo/node/5
  • Path prefix pairs: http://example.com/group/1/node/5
  • Query string: http://example.com/node/5?group=1
  • Domains: http://example.com/node/5
  • Subdomains: http://foo.example.com/node/5
  • Path Extensions: http://example.com/node/5.csv (detection only, no rewriting)
  • HTTP User Agent: Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) (detection only, no rewriting)

Comments

nicholas.alipaz’s picture

This module is a plugin for context that provides detection of useragents via context conditions and then allows you to set a reaction based on the condition. I am not really sure how that relates to pURL since my understanding is that pURL is mostly used for detecting url strings and doing rewriting based on that. It also detects useragents, but no rewrites for them.

This module is not for rewrites, it is simply to detect a browser and perform a reaction, whatever that may be.

Let me know if I have missed something.

nicholas.alipaz’s picture

Status: Active » Closed (works as designed)

I assume this is now clear...

teezee’s picture

My question came from the fact that Purl started its life as part of the context module and is now still used for Spaces. And Purl makes it possible to create spaces/sections inside your site based on parts of the URL, rewriting (not redirecting) is part of that, to make sure that http://example.com/node/1 is not the same 'section' as http://example.com/section1/node/1 for example.

But I'll try both modules out then, and report back what my findings are.

nicholas.alipaz’s picture

well what you describe is for sure not what this module does. Feel free to open this again if you have more questions.