apache - 重定向到带有标签的 url .htaccess Apache
问题描述
我该怎么做这样的事情:
Redirect 301 /link-to-something https://otherwebsite.com/#something
在我的 .htaccess 中?我到处找,这应该工作:
RewriteRule ^link-to-something/?$ https://otherwebsite.com/#something [R=301,L,NE,NC]
但它不适合我,可能错过了一些东西,但我不知道是什么。
解决方案
推荐阅读
- html - 无法在 iframe 内的新选项卡中打开链接
- javascript - ReferenceError:函数未在 HTMLButtonElement.onclick 中定义
- java - 如何修改单声道
基于 Pojo 订单? - selenium - Selenium WebDriver:为什么从 200 个国家中选择一个国家需要这么长时间
- python-3.x - 导入 PDF 图像以转换为文本时出错
- python - 我无法导入模块“msvcrt”
- php - 用户打开网站PHP时如何强制清除缓存
- angular - 角度将数据传递给提供者
- javascript - 最小值和最大值的动态正则表达式
- sql-server - SSIS :: 如何在不使用 SCD 向导的情况下在 SSIS 中实现 SCD 类型 2。当传入数据集具有相同业务键的多条记录时