私はこのようなhtmlコードを持っています
<a href="/site/index.php/Something" title="Something">Something cool</a>, <a href="/site/index.php/Nice_Text" title="Nice Text">Nice Text</a>
some text
<a href="/site/index.php/Apple%27s_text" title="Apple's text">Apple's text</a>
これを取得するには、リンクにドット (先頭) と .html (末尾) を追加する必要があります。
<a href="./site/index.php/Something.html" title="Something">Something cool</a>, <a href="./site/index.php/Nice_Text.html" title="Nice Text">Nice Text</a>
some text
<a href="./site/index.php/Apple%27s_text.html" title="Apple's text">Apple's text</a>
私はsedで遊んでいましたが、変更されたURLを操作する方法がわかりません。そのプットの前(または変数間の後)を探して"/site/index.php/
最初に出現するようなもの。"
"
.html
ありがとうございました。