全文検索:
- 2025.02.08 Redirects with #
- a # (hash) in the URL. However, the # gets URL-encoded, preventing the redirect from working correctly.... L like this: https://hogehoge.com/hoge2%23page1 <code> RewriteCond %{REQUEST_URI} ^/hoge/page1 RewriteRule ^ /hoge2#page1 [R=302,L] </code> ===== Solution ===== Use an intermediate HTML file and redirect via JavaScript. <code|.htaccess> RewriteCond %{REQUEST_URI} ^/hoge/page