Cheyenne v0.9を使用していて、静的 HTML ファイルを として提供したいのですが、URL に拡張子text/html
を含めたくありません。.html
CGI やその他の動的プロセッサを使用せずにこれを行う方法はありますか?
例えば:
/path/to/example.org/web-root/about.html
連絡先:
http://example.org/about
Apache に相当する「ReWrite」は次のようになります。
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [L]