首页 > 解决方案 > 重定向到带有标签的 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]

但它不适合我,可能错过了一些东西,但我不知道是什么。

标签: apache.htaccess

解决方案


推荐阅读