http://sitename.com/cat/index.phpからhttp://sitename.com/cat/index.php#anchorにリダイレクトする必要があります
私は2つの方法を試しました:phpリダイレクトとメタリフレッシュ
PHPリダイレクト
<?php
$URL = "http://sitename.com/cat/index.php#anchor";
header("Location: $URL");
?>
<html>
....
メタリフレッシュ
<html>
<head>
...
<meta http-equiv="refresh" content="0;url=http://sitename.ru/cat/index.php#anchor">
...
</head>
...
</html>
両方の方法の結果として、私はサイクリングページを更新しました。
この問題を正しく解決する方法は?