Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
誰かが特定のディレクトリにアクセスした場合、URL を強制的に index.html にしたいと考えています。.htaccess でこれを行うにはどうすればよいですか?
このルールを試すことができます:
RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{REQUEST_URI} !index\.html$ [NC] RewriteRule ^(.*?)/?$ /$1/index.html [L,R=301]