質問編集履歴

1

例示ドメインに変更しました

2022/01/25 10:55

投稿

ikasam
ikasam

スコア0

test CHANGED
File without changes
test CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  - /category配下のディレクトリは可変
5
5
  - ハイフンから.html前までを削除したい
6
- -正解イメージ:https://hoge.com/category/abc/123456.html#abcdfe
6
+ -正解イメージ:https://example.jp/category/abc/123456.html#abcdfe
7
7
 
8
8
  さらにスマートな書き方がありましたらよろしくお願いいたします。
9
9
 
@@ -21,10 +21,10 @@
21
21
 
22
22
  <html>
23
23
  <div class="box">
24
- <a href="https://hoge.com/category/abc/123456-12345678910.html#abcdfe">A</a>
24
+ <a href="https://example.jp/category/abc/123456-12345678910.html#abcdfe">A</a>
25
25
  </div>
26
26
  <div class="box">
27
- <a href="https://hoge.com/category/efgh/234567-23456789101.html#bcdefg">B</a>
27
+ <a href="https://example.jp/category/efgh/234567-23456789101.html#bcdefg">B</a>
28
28
  </div>
29
29
  </html>
30
30
  ```