Translations of this page:
- 日本語 (ja)
- English (en)
最近の更新
最近の更新
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]