问题描述
我正在使用 .htaccess 重写 URL subdomain.domain.com/result.PHP?domain=example.com 当我点击上述 URL 时,google AdSense 广告会显示在网页上,但是当我将 URL 重写为 subdomain.domain.com/example.com 时,google Adsense 广告停止显示在页面上。我的网址和子域已在 AdSense 上进行验证。我不明白这里发生了什么。为什么广告被屏蔽。为什么不显示。下面是我使用的 .htaccess 代码:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^page/([a-zA-Z0-9]+)/ pages.PHP?page=$1 [L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^top/([a-zA-Z0-9]+)/ top.PHP?p=$1 [L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/$ $1.PHP
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.PHP
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ result.PHP?domain=$1 [L]
</IfModule>
请让我知道我可以在代码中更新什么。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)