前提・実現したいこと
忍者アクセスカウンターを使って、カウントを取りたい。 リダイレクトしてるので、phpファイルに解析用タグを貼って動作させたい。
発生している問題・エラーメッセージ
リダイレクトはされるが、アクセスカウントがされない
該当のソースコード
php
1 2<!doctype html> 3<head> 4<meta charset="UTF-8"> 5</head> 6 7<body> 8<!--shinobi1--><script type="text/javascript" src="//xa.shinobi.jp/ufo/18559780d"></script> 9<noscript><a href="//xa.shinobi.jp/bin/gg?18559780d" target="_blank"> 10<img src="//xa.shinobi.jp/bin/ll?18559780d" border="0" alt=""></a><br> 11<span style="font-size:9px"><img style="margin:0;vertical-align:text-bottom;" src="//img.shinobi.jp/tadaima/fj.gif" width="19" height="11" alt=""> 12</span></noscript><!--shinobi2--> 13 14<?php 15$contents = 'http://mani.gr.jp/'; 16header("Location: $contents"); 17?> 18 19</body> 20</html>
試したこと
解析用タグと、リダイレクト文をheadに記載してみた。
.htaccessを追加。
phpファイルではなく拡張子をhtmlにしてみた。
補足情報(FW/ツールのバージョンなど)
//.htaccessの中身 AddType application/x-httpd-php .php .html .htm AddHandler application/x-httpd-php .php .html .htm php_flag allow_url_fopen on php_flag allow_url_include on
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/02/28 03:12
2018/02/28 03:22