User login

Exporting Redirects to Webserver Rules the Awesome way

[Note: For non-automatic export of Redirects to Apache rules, see Redirect Export module.]

courtesy Stefan, of course

Resources:
http://php.net/manual/en/book.dba.php

[15:52] <sfreudenberg> cool. php supports writing to dbm files. so your module could actually write an optimized rewrite map.
[15:53] <sfreudenberg> it could write to the file that apache reads, so it would work as seamless as redirect and not be as problematic as redirect
[15:57] <mlncn> that would be amazing to do everything redirect does, but the right way, without people having to export anything manually
[16:20] <mlncn> sfreudenberg: links for near-future referenc on both php and dbm (i'm finding just that dbm-specific functions are deprecated, and to use dba, with no guidance on how), and apache and dbm? (this doesn't seem the most useful starting space: http://apr.apache.org/docs/apr-util/0.9/group__APR__Util__DBM.html )
[16:21] <sfreudenberg> dbm is the format you can store the rewrite map in.
[16:21] <sfreudenberg> the dba functions are documented
[16:22] <mlncn> yes, for connecting to dbm though? that's the default style of database?
[16:23] <sfreudenberg> yes they are used for all the types. apache supports dbm and gdbm at least
[16:23] <sfreudenberg> apache does a lot with that file format

Implement for: http://drupal.org/node/791754

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.