0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

1人コンプAdvent Calendar 2022

Day 14

index.htmlじゃないファイルをトップページにする方法

Posted at

はじめに

普通、サイトのトップページってindex.htmlとか、index.phpとかが普通ですよね。
でも、いろんな事情によってtop.htmlをトップページにしたいとき、ありますよね。(ない?)

.htaccessに書き込む

.htaccessに以下のように書き込みます。

DirectoryIndex top.html top.htm top.php

こうすることで、top.htmlをトップページにすることができるのです!

終わりに

なんに使うんだろ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?