<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ma2</author_name>
  <author_url>https://blog.hatena.ne.jp/ma2/</author_url>
  <blog_title>ma2’s diary</blog_title>
  <blog_url>https://ma2.hatenadiary.com/</blog_url>
  <categories>
    <anon>software</anon>
  </categories>
  <description>よく，urlに付加されたパラメータを複数画面で持ち回りたいことがある。このとき経由する画面が全てcgiならば，かっこ悪いがパラメータを読んで，ページ内のリンクに埋め込めば済む。 ではcgiじゃないplainなhtml画面があるときはどうしたらいいか？ 強引にcgiにしてしまうのが1つの手だが，パフォーマンス低下が気になる。そこでmod_rewriteを使って，なんとかできないかと考えた。 RewriteEngine on RewriteRule ^(.*)/S=([^/]+)/(.*) $1/$3 [E=STATUS:$2] こんなルールを使うとfoo/S=ma2/barというURLをfoo/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fma2.hatenadiary.com%2Fentry%2F20050214%2Fp2&quot; title=&quot;mod_rewriteでパラメータの持ち回り - ma2’s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2005-02-14 00:00:01</published>
  <title>mod_rewriteでパラメータの持ち回り</title>
  <type>rich</type>
  <url>https://ma2.hatenadiary.com/entry/20050214/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
