Translations of this page:
- 日本語 (ja)
- English (en)
最近の更新
Tag Cloud
このページへのアクセス
今日: 1 / 昨日: 4
総計: 185
- DokuWiki(100)
- Dokuwiki.fl8.jp(79)
- 17 WSL2 + Docker(26)
- サカつく初代(17)
- counter(13)
- code2(8)
最近の更新
このページへのアクセス
今日: 1 / 昨日: 4
総計: 185
There are cases where you want to redirect with a # (hash) in the URL.
However, the # gets URL-encoded, preventing the redirect from working correctly.
This configuration is intended to redirect /hoge/page1 to /hoge2#page1,
but it actually redirects to a URL like this:
https://hogehoge.com/hoge2%23page1
RewriteCond %{REQUEST_URI} ^/hoge/page1 RewriteRule ^ /hoge2#page1 [R=302,L]