1. file-name-sans-extension を 使う

(file-name-sans-extension "/path/to/index.html") ; => /path/to/index

2. f.elf-no-ext を使う

f.el はファイル関連の処理をいい感じで扱いやすくしてくれるライブラリ.

(require 'f)
(f-no-ext "path/to/index.html") ; => /path/to/index