いつもお世話になっております。
Yahooのスマホページのリダイレクトがうまくいっておりません。
現在、
https://shopping.geocities.jp/アカウント/
上記のページにアクセスすると
https://shopping.geocities.jp/アカウント/ecstation/spc/top.html
こちらにリダイレクトされます。
このリダイレクト先を
https://shopping.geocities.jp/アカウント/top.html
に変更したいのですが方法がわからなく、躓いています。
リダイレクトソースを変更する方法はありますでしょうか?
<script type="text/javascript"> if (((navigator.userAgent.indexOf('iPhone') > 0 && navigator.userAgent.indexOf('iPad') == -1) || navigator.userAgent.indexOf('iPod') > 0 || (navigator.userAgent.indexOf('Android') > 0 && navigator.userAgent.indexOf('Mobile') > 0) || navigator.userAgent.indexOf('Windows Phone') > 0)) { location.href = '
https://shopping.geocities.jp/アカウント/top.html'; }</script>