开启左侧

哎, 有一种挫败,叫无功而返!!

[复制链接] 3
回复
3285
查看
打印 上一主题 下一主题
楼主
跳转到指定楼层
发表于 2015-11-13 23:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?注册

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。& Z  A9 j+ @2 c, {( u, q
& h' M+ Z' ]9 V( M2 I& q( J+ W
先是将代码测试贴在一个专题页底部:https://www.beimeilife.com/portal.php?mod=topic&topicid=35
: d8 P  I5 a, [却不显示。
3 n6 m- T( l# K: B3 c: P
9 ?& Z/ d: c0 c查询下,木有头绪, 所以自前天就给Google Adsense 查询:
' j. j8 E' h' j. q( _https://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense
- y6 h6 Q( H9 g
' C8 `" n/ Y6 m. U网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://beimeilife.duckdns.org/beimeilife.com 打开就会出现, H' ^) S! S- E' e+ q& k( k( u
  O" _& |/ f" r% [
This webpage has a redirect loop/ s( U% L# V7 V! C: m9 K

6 ]+ _$ V+ P+ w/ Z才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。) r( I8 |0 Q' {4 n) o  i
) r1 Z/ T5 z! t; p- Y' o
熬了一天一夜都没有效果, 气馁,放弃!!
5 e1 O/ Q9 ~$ ~8 X, G; g: Z4 N' C7 O4 r! k. T
) V/ [2 z! Y- K8 a
, F9 a+ Z! K$ @
5 m! _+ M+ [' ^3 K) J1 j7 g4 {

! E/ h' k) l4 Y) n8 X0 r  t% {

转载请保留当前帖子的链接:https://www.beimeilife.com/thread-2724-1-1.html 谢谢
沙发
发表于 2015-11-13 23:26 | 只看该作者
https://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense
3 f3 d$ ^0 E& p$ O
2 g# i* a6 p# `ads not showing on my website

% G+ m% C; F  @" jCan anyone help me with this?
. V  R* \  B) Q2 X3 a" D5 g& ~" N# |, q9 P
I put it on the bottom of the webpage:
) c0 b" {5 z+ U# M* N0 q8 n6 V% b' ?4 s
https://www.beimeilife.com/portal.php?mod=topic&topicid=329 }) a2 p! b8 l% ^
0 F9 j7 M4 t2 j: G( S
5 A+ G1 A/ C8 _* ?: z9 G' e
This webpage has a redirect loop- H- k  j. v# K6 t' j* o
[size=0.86em]ERR_TOO_MANY_REDIRECTS
7 \) c- m7 l0 }$ ^6 D; j& k2 a
5 [6 ]' M9 J$ e) w& W% \& e  Y! W3 W" U
Your website URL is:
2 w* z3 ~  ]" p2 j, H( n  i
8 y& a+ I* u$ L! J2 |6 Fhttps://beimeilife.com/portal.php not the URL you left.
7 h% ~+ V) W1 ?. D4 @' f# t, Z0 a, V" b# Q
Plus, you can't possibly have applied with the URL you left, so I assume you applied with beimeilife.com, which redirects to https://beimeilife.com/portal.php. AdSense won't follow a redirect. If you applied with beimeilife.com , then that's the web page that has to load for the adsense crawlers, not https://beimeilife.com/portal.php3 |0 @+ O9 U7 u6 J; i

1 N- N' i$ z- U. k  R! |+ h
2 @9 d2 V2 X  f" O+ L& d! J/ s2 E1 e! {
$ q: d: ~$ Y3 }2 \Your website URL is:' O! i  ^3 A& g' m8 g! u$ ~
6 b1 y6 j: W: n- u5 `" W4 R0 s
https://beimeilife.com/portal.php not the URL you left.( F: W% B5 |. X8 q3 V- |

) j( n$ e& k) g/ V% W" J$ LPlus, you can't possibly have applied with the URL you left, so I assume you applied with beimeilife.com, which redirects to https://beimeilife.com/portal.php. AdSense won't follow a redirect. If you applied with beimeilife.com , then that's the web page that has to load for the adsense crawlers, not https://beimeilife.com/portal.php
+ o0 Y- L, f0 [$ T( l+ x0 T  h' Z, }( s5 Y5 {' E: I0 t
4 z; a! e' H  W9 l) |/ q- R
0 L+ d+ l1 z9 e
Many Thanks for your prompt reply and help.) y) ?- ^8 x* C3 n8 N" S* b8 T- u
you mean I need add each web page to URL Channels before adding code to the page? I thought I owned the website, so would be include every pages, now for testing purpose, I added https://www.beimeilife.com/portal.php?mod=topic&topicid=32, and http://www.google.com/url?q=http%3A%2F%2Fwww.beimeilife.com%2Fportal.php%3Fmod%3Dtopic%26topicid%3D35&sa=D&sntz=1&usg=AFQjCNHbh9cKsbWuvN8IipPxNyEBam7phA to URL channels, but still not showing, really panic and frustratiing, domn't know how., anyway, thanks again./ q7 H( d4 M! c6 V

; N; F3 i& ?, S! t0 W( r4 u4 P. k/ H; R1 G- a
Gracey said:  1 k4 Q5 g8 t0 a
No, that's not quite what I mean./ R. S# G- N0 ^0 I& A6 T0 H
When you apply for Adsense you have to supply the URL of your website, right?
) _: m* \( c7 x" r9 c( R& w8 l9 s& P8 [0 ~
The URL I assume you supplied was this one: https://beimeilife.com/  <--- exactly like that, without the www, cause your www url doesn't work, and without the /portal.php, because you can't use a url with a path (that's the slash) when applying for adsense. You can only add the domain https://beimeilife.com/,. o% k, h7 |# g- A, ~4 A9 R

$ V3 ~! N. o2 ]So, if you go to http://www.google.com/url?q=http%3A%2F%2Fbeimeilife.com&sa=D&sntz=1&usg=AFQjCNFvboQjoLI934UD_ef3e2-QGJkQpg  what URL do you see in the search bar after you arrive on your website?  x  |! D) Z" F2 i+ V7 B7 P

8 }# Z2 F2 ?* t1 B4 HThe URL I see is https://beimeilife.com/portal.php  <--- and that not the URL you told AdSense was the URL for your website.. ?% E7 O; s: k! w- F+ Q$ f! g

8 }9 b7 N/ B  j" B' e; P, e/ RYour website's URL has to be the page that loads. It can't be https://beimeilife.com/portal.php
8 Y  y, z0 n6 \  O7 r1 ]  ?7 e* w. E7 A
I'm sorry, I might not be explaining it very well, but if you don't understand what a redirect is and how it works, you might need to ask someone who does for help. You have to set up your website so it doesn't have a redirect to the /portal.php page. Maybe your domain registrar can help you, or your webhosting provider.
/ h; D, Z: j" c! i
# n9 G9 C) P* Z  a; aYou can put the ad code in active page on your website, but you have to first fix the redirect problem or adsense will not find your site.5 B% i( b" V4 B2 S, H2 L% X
* G* z. x; s: _4 ?7 w- ~
When they go to https://beimeilife.com/ with their crawler, the crawler will stop. It won't go on to https://beimeilife.com/portal.php, so it won't see anything on your site, including the ad code.$ k8 ^( v" v) i" _) N, y5 H4 |
5 I" _6 [. }8 J& A/ j6 l* x+ D; T

- j- f( C$ |' x1 ^# A; lI said:  - T/ I+ Z4 J3 f5 V; a* s$ D. G
I modified .htaccess, and also modified Apache server redirect the https://beimeilife.com/ to [url=]www.beimeilife.com. On[/url] any browser( Chrome/IE/FF, https://beimeilife.com/ has no problem redirecting to https://www.beimeilife.com/, I also checked the https://beimeilife.com/ on website http://www.redirect-checker.org/index.php with no problem. But,  each time I click the links you added here, got a error message "This page can’t be displayed", but refresh the address it auto comes to https://www.beimeilife.com/ , does this means so no luck to achieve the codes displaying?
3 ]9 H8 P9 C+ f6 ?7 C
1 z" j' D9 ~5 k7 b  A5 e3 AThis really drives me crazy now, need a rope on the neck.
8 V2 y* i) w% m% y" v1 @9 y$ P
  t' j$ {+ u: {( DI said:  
3 @% O3 I2 c5 @  r" T+ Z2 u+ Elet me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ1 z5 t: F7 i* x, l8 i
I said:  : C( I$ z6 X' R) T+ M3 h
no problem, that means something wrong with my site settings.  X9 Y; O, y" \* l: m1 e
/ F/ u) m5 p- p* k, o
# z4 |4 z* F, q
Gracey said:  
9 ?  m- b( G. z.htaccess is not how you fix that. You need to change the DNS settings.
  x) Q7 _# w# O- P8 u1 H- m# F  W, V  Z! {' z& q

% K& f/ B2 K3 m# P( x+ o3 ^" d, k. ]! B  w4 i1 V% ^( [
6 A0 [  ^. v% s

" E/ M6 U+ L; o6 |! \% G
% _! _# p9 t" P* \
, M, y( u( y1 x: X$ ^
; B2 q% r9 H3 N" D
3 T& b* u- l: R' M. c, I- f, P' }
. D+ ?) P% u9 J/ e. m, w9 V
3 ^! [) c% D3 O; F  C. M6 w
% i0 G. @4 T0 {1 @
8 T( C. b' g, `

6 U, ]+ v6 a" h( R; t3 ~1 ]+ k& a  s; K6 W3 ^) ^3 H  a# @* c

* g: j4 x3 ?& G( t  c; E' |9 v; ?6 A( B3 Q& Y( V& k

4 j' X- x/ J( F2 \& A0 {9 R2 y
9 y: m. G( \2 Z% c4 q* ~
1 W' Q  k) H1 i. a+ T5 t7 V& h: {+ V; }4 W

( P; t& _& l- P- y- w
% ^8 l5 L/ a& @5 s! F% j/ B
板凳
发表于 2015-11-17 02:25 | 只看该作者
关于域名定向转换,这是一篇好文章:
$ L2 S; A% a: H* N: |6 v. Y& h- k5 _; k( a! z2 @# D5 V
http://blog.viewzhao.com/2014/06/page/23 t* a1 P; s+ Q, [
as well:. O9 _. e3 F- S, V

, i4 N7 V* V" O8 U5 P. j# ^9 o. zhttps://my.fastdomain.com/cgi/help/htaccess_redirect
' }- N4 I0 ~* ]5 M- p: s
; k+ c( w" j7 F# U5 r2 J. bhttp://www.discuz.net/thread-2130491-1-1.html9 }4 M- L3 m8 @  g8 ?) V9 O* \
地板
发表于 2015-11-17 02:26 | 只看该作者
加强版 google和百度sitemap for discuzX2.0-X3.2
6 ^0 A  y  {3 X& T
5 _1 f% L2 f$ f& h1 khttp://www.discuz.net/thread-2474942-1-1.html

使用高级回帖 (可批量传图、插入视频等)快速回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则   Ctrl + Enter 快速发布  

发帖时请遵守我国法律,网站会将有关你发帖内容、时间以及发帖IP地址等记录保留,只要接到合法请求,即会将信息提供给有关政府机构。
快速回复 返回顶部 返回列表