@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-url-redirects/>
  a sioc:Post ;
  dc:title "Migrating from LH Response Handler" ;
  dcterms:identifier 152500 ;
  dc:modified "2026-10-25T18:35:46Z"^^xsd:dateTime ;
  dc:created "2026-10-25T18:35:46Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-url-redirects/migrating-from-lh-response-handler/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded """<ul class="lh_portfolio-meta"><li><strong>Part of:</strong> <a href="https://lhero.org/portfolio/lh-url-redirects/">LH URL Redirects</a></li></ul>
<p class="wp-block-paragraph">LH URL Redirects replaces LH Response Handler, which kept each rule as a post on the main site with the full matching URL in meta and the status code in a taxonomy. The two can run side by side during the switch, since both only act on 404s.</p>



<ol class="wp-block-list">
<li>Network-activate LH URL Redirects.</li>



<li>Run <code>lh-url-redirects/import-legacy-redirects</code> with no arguments for a dry run, and read its per-rule report.</li>



<li>Run it again with <code>dry_run</code> false. Each published Response post becomes an exact rule, with its title as the note and its post ID kept as <code>legacy_id</code>, so a rerun skips what is already imported. Two posts that differ only by a trailing slash collapse into one rule.</li>



<li>Check a few sources with <code>resolve-url</code> and in a browser, then network-deactivate LH Response Handler.</li>
</ol>



<p class="wp-block-paragraph">The importer reads but never changes the old posts, so they remain as a backup until deleted.</p>
"""^^rdf:XMLLiteral ;
  sioc:content """Part of: LH URL Redirects
LH URL Redirects replaces LH Response Handler, which kept each rule as a post on the main site with the full matching URL in meta and the status code in a taxonomy. The two can run side by side during the switch, since both only act on 404s.




Network-activate LH URL Redirects.



Run lh-url-redirects/import-legacy-redirects with no arguments for a dry run, and read its per-rule report.



Run it again with dry_run false. Each published Response post becomes an exact rule, with its title as the note and its post ID kept as legacy_id, so a rerun skips what is already imported. Two posts that differ only by a trailing slash collapse into one rule.



Check a few sources with resolve-url and in a browser, then network-deactivate LH Response Handler.




The importer reads but never changes the old posts, so they remain as a backup until deleted.
""" ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
