serverapps:dokuwiki:lighttpd:rewriteurl
差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| serverapps:dokuwiki:lighttpd:rewriteurl [2022/07/01 08:13] – 作成 hayashi | serverapps:dokuwiki:lighttpd:rewriteurl [2022/07/01 08:24] (現在) – hayashi | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== urlの書き換え ====== | ====== urlの書き換え ====== | ||
| + | DokuWiki のデフォルト設定では URL を書き換えず、URL はこんな感じになります: | ||
| + | http:// | ||
| + | これを以下のようなurlになるよう変更します | ||
| + | |||
| + | http:// | ||
| + | |||
| + | ===== 設定 ===== | ||
| + | - dokuwiki関連用設定ファイルに以下を追記 | ||
| + | * <file conf / | ||
| + | # rewrites for dokuwiki | ||
| + | $HTTP[" | ||
| + | url.rewrite-once = ( | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | )</ | ||
| + | |||
| + | - lighttpdのモジュール設定ファイルでrewriteモジュールを設定 | ||
| + | * <file conf / | ||
| + | server.modules = ( | ||
| + | " | ||
| + | " | ||
| + | # " | ||
| + | # " | ||
| + | # " | ||
| + | # " | ||
| + | # " | ||
| + | # " | ||
| + | )</ | ||
| + | |||
| + | ===== 設定 ===== | ||
| + | dokuwikiの設定画面で以下の設定を行います | ||
| + | * URLの書き換え: .htaccess | ||
| + | * URL上の名前空間の区切りにスラッシュを使用 [x] | ||
| + | |||
| + | ===== lighttpdの再起動 ===== | ||
| + | |||
| + | service lighttpd restart | ||
| + | |||
| + | |||
| + | ===== 参考 ===== | ||
| + | * [[https:// | ||
serverapps/dokuwiki/lighttpd/rewriteurl.1656663235.txt.gz · 最終更新: by hayashi
