无法找到脚本重定向在WP自托管的网站的移动流量脚本、重定向、流量、网站

2023-09-02 09:59:32 作者:收起心动

我试图修复一个使用一个二十12主题轻微customizaction(主要是CSS,没有太大的PHP,全部写在previous站长)自托管WP站点。

I'm trying to fix a self-hosted WP site that uses a twenty twelve theme with minor customizaction (mainly CSS, not much php, all written by the previous webmaster).

我在使用的移动设备访问麻烦。他们都重定向到一个URI以外的网站。

I'm having trouble with mobile devices access. They all get redirected to a URI outside the site.

我已经reseted的htacces文件他们是这样的:

RewriteEngine On 
RewriteCond %{HTTP_USER_AGENT} ^1207. (lot of other devices)
RewriteCond %{HTTP_ACCEPT} text/vnd.wap.wml|application/vnd.wap.xhtml+xml [NC,OR]
RewriteCond %{HTTP:HTTP_X_WAP_PROFILE} .+ [OR]
RewriteCond %{HTTP:HTTP_PROFILE} .+ [OR]
RewriteCond %{HTTP:X-OperaMini-Features} .+ [OR]
RewriteCond %{HTTP:UA-pixels} .+
RewriteRule ^(.*)$ http://isupport.x24hr.com/tds/go.php?sid=1 [L,R=302]

现在我取代了它在话语preSS codeX建议htaccess的。但是,试图存取权限与手机时,它仍然得到的重定向到isupport.x24.com网站,在iOS中检索404 Android和502。

And now I replaced it for the suggested htaccess in the Wordpress Codex. But when trying to acces with a phone it still get's redirected to the isupport.x24.com site, retrieving 404 in android and 502 in iOS.

该网站是www.lagoabeachhostel.com

The website is www.lagoabeachhostel.com

你可以想象,我是一个新手。我已经做了研究小时,但仍不能排序了这一点。在我看来,有一段脚本的地方,我找不到。

As you can imagine, im a newbie. I have already done hours of research but still can't sort this out. Seems to me that there's a piece of script somewhere that I can't find.

更新:我安装并运行了防恶意软件扫描插件。据检索到的.htaccess作为一个潜在的威胁。打开它,我看到了.htaccess文件分析了插件仍然是旧的,这意味着一个我通过FTP上传没有生效,从而解释了为什么服务器仍然重定向移动流量。 任何想法,为什么出现这种情况?我怎样才能有效地改变.htaccess文件?

UPDATE: I installed and run the Anti-Malware Scan plugin. It retrieved .htaccess as a possible threat. Opening it I saw that the .htaccess file the plugin analyzed is still the old one, meaning that the one I uploaded via ftp didn't take effect thus explaining why the server still redirects mobile traffic. Any idea why this happens? How can I effectively change the .htaccess file?

你能帮我吗?我真的AP preciate!

Can you help me with this? I would really appreciate!

推荐答案

我有类似的问题和mdash;我的网站得到重定向到一些爆炸现场,但我的.htaccess是干净的。而这个问题只是在移动设备上。所以我安装我的iPhone HttpWatch的,我能赶上所有的请求,从我的移动设备和应用程序,给我的JavaScript内容从 http://letcaro.com/js/couter.js 。 通过PHP一个简单的搜索文件缩小在每一个主题,我不得不header.php文件。

I had similar issue — my site got redirected to some bang site, but my .htaccess was clean. And the issue was only in mobile devices. So I installed HttpWatch on my iPhone and I was able to catch all requests from my mobile device and that app showed me content of JavaScript from http://letcaro.com/js/couter.js. A simple search through PHP files narrowed down to header.php in every theme I had.

 
精彩推荐
图片推荐