开启左侧

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

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

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

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

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。+ _3 _& f! @3 p( S- r
! K: O: g4 ~+ ]" a0 H# a8 `
先是将代码测试贴在一个专题页底部:https://www.beimeilife.com/portal.php?mod=topic&topicid=35
0 ^/ f( V, r6 K% M3 a7 W9 X却不显示。5 o' T  |0 U' j7 M' y8 \
9 L6 `1 k# i6 Z- Y! z0 r  T
查询下,木有头绪, 所以自前天就给Google Adsense 查询:  f  s# A" ~) Q2 n
https://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense$ M" K+ L* [5 ]: D

' i3 e9 d6 _# F7 W0 y网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://beimeilife.duckdns.org/beimeilife.com 打开就会出现
: k5 @9 o4 T: X2 k
* _2 q/ O+ Z9 A; zThis webpage has a redirect loop; ^; s7 U# x4 b
+ Z& e7 n0 [2 [4 d: f9 w  d# q
才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。8 @$ j+ J- D6 u

$ k# C. ]3 l& q  q  R熬了一天一夜都没有效果, 气馁,放弃!!' R/ H! x; e# o  i

% N0 C$ _% @3 N' H* S8 b" O
9 M8 {1 u4 i! `/ I0 ^$ O/ y2 f% \$ i* r# g! W! r9 K$ v
3 F/ X6 M3 D, z. o& S. a3 e
+ u# q" Z, g( K4 c


转载请保留当前帖子的链接:https://www.beimeilife.com/thread-2724-1-1.html 谢谢
地板
发表于 2015-11-17 02:26 | 只看该作者
加强版 google和百度sitemap for discuzX2.0-X3.2
; i# _- Y/ a) |2 X( ^/ t: i9 k
http://www.discuz.net/thread-2474942-1-1.html
板凳
发表于 2015-11-17 02:25 | 只看该作者
关于域名定向转换,这是一篇好文章:7 q9 x( M+ w0 W" F7 p, v
0 M* ~7 w: P1 W. y+ c
http://blog.viewzhao.com/2014/06/page/2
0 i8 b2 Z2 Z3 A( Y, ^as well:- T8 M) q% A; Y4 ]* y! U

! i4 W+ g+ h  u: M' V& [( O: r! L& Phttps://my.fastdomain.com/cgi/help/htaccess_redirect
9 l. p9 ?8 ~5 h6 y5 x- m4 }/ X- k8 g+ j+ V7 G
http://www.discuz.net/thread-2130491-1-1.html
. j$ S5 ?/ j* g: \
沙发
发表于 2015-11-13 23:26 | 只看该作者
https://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense9 W# J6 e5 w$ K1 B

; J4 d9 S0 L# w' v* n. dads not showing on my website
: k* I: X! J7 y/ f! \5 Q- x
Can anyone help me with this?
% B; @- z0 {! ]2 j, v+ J3 D9 M" O3 N
I put it on the bottom of the webpage:
: U( ?8 T, U) X9 I
% L  c& J* t4 A9 C, l$ ^9 khttps://www.beimeilife.com/portal.php?mod=topic&topicid=32) q9 b& u2 C& Q) F' S) M" Y( d3 h
9 I! I' F; K' x

# g$ d( u% z5 l% o8 eThis webpage has a redirect loop
$ r9 }5 u! V* ?3 I[size=0.86em]ERR_TOO_MANY_REDIRECTS
  a# `1 Z- }* }, M7 Z" y/ Z. _9 k1 r$ S

  p: ?. A( Q' |( [( B/ [7 BYour website URL is:# R' C" ^/ Y$ J$ F
% b2 G# Z! e2 L6 ~
https://beimeilife.com/portal.php not the URL you left.) |$ M, _3 j) \9 v6 _

  j0 s3 r0 E( j  j( u1 t' |! HPlus, 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
% N$ t2 W3 ~( |& \
3 Y2 `! S& ~! N, ]
$ |8 |" o# H, L; |) u  S
' H. t7 h0 T" d7 I7 U/ EYour website URL is:' A. I: T" y  K: @0 p6 T1 W

( v  d/ m& U: a& Yhttps://beimeilife.com/portal.php not the URL you left." N, D: D1 g) v- M4 T4 I- u! x

* i( w, O, E, }" J* aPlus, 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
( Z2 g8 r1 g* Y( J( v
! p/ d" `) V( I- S, c' h
5 d: V$ M9 w4 f1 l) a1 ?
9 B6 G8 e, _$ D8 d7 U- p% EMany Thanks for your prompt reply and help.$ ?2 J! I* E+ X  N/ O, O, u% x
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.
$ o# ^6 t, G) _) S
3 V# ?  ~4 O' y. G1 @
' C; Z" q) f" r4 @; M1 z: kGracey said:  : I8 a" q* |- h! M- d/ d6 M
No, that's not quite what I mean.& [: G+ w" V" Y1 l# S( u
When you apply for Adsense you have to supply the URL of your website, right?2 [9 h+ P5 Y; I2 a
; V: X$ l0 Y: r- D" L/ _9 q, j8 [% O
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/,' }+ A3 A0 M2 p5 Z, F) _* B) ^
6 e8 x% T2 @  n) ?9 G- X, i
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?6 h0 z& ]1 Q9 V; M% C( \
6 X3 i9 x+ I- j5 ]$ X
The URL I see is https://beimeilife.com/portal.php  <--- and that not the URL you told AdSense was the URL for your website.9 g0 ^" L3 Q/ B4 t  n# ~
! \8 G' l3 X& k6 v7 m
Your website's URL has to be the page that loads. It can't be https://beimeilife.com/portal.php" r) J8 y" J& Q8 Z# _% i* F

+ K6 {( e% ?' LI'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.2 H, ^4 _. v) m7 s3 R

% G  g. l$ U$ ]  B$ E' [You 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.
* |9 N- O  K) t/ [2 @7 e
  m6 K0 j, I4 M  Q/ n1 L* nWhen 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.
( g2 H1 h7 m: M. _
8 V" m3 E. h+ t# h5 J+ h, D' G0 Q; ?" F# `; m! w6 K& n0 M2 B
I said:  3 z* l' Y# m' v- ^1 T+ K
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?
: t+ l6 |  ~7 H* ~/ p  i1 B( d( B
+ J* N7 F# e3 V8 TThis really drives me crazy now, need a rope on the neck.
5 `8 F8 Q7 @  b" [, v: b4 {  @! z: j# B3 T
I said:  
( G6 f  B! I9 `  V. p3 i- Zlet me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ) \4 ]& G9 G9 I- P, P
I said:  
/ J) w; M, F# _- ~: Ono problem, that means something wrong with my site settings.' h7 B4 C# M- G2 S) w
: z( a$ e8 \8 k" `' j- k' o
& Q7 [' X' P8 L
Gracey said:  
* k' ^  q- ~2 i( f.htaccess is not how you fix that. You need to change the DNS settings.
- p) z7 R* `9 L9 v: `1 V5 x+ g
- e) J% V# @4 j. |7 ?4 w9 u) `9 ~9 q5 Q' z% {4 J0 d: W& q

6 b: q! C. z% _8 K. _$ J( I( m+ l: ^6 z/ n

! A  N7 s  g" R/ q  C" ?& _
9 e  P; w; Q% u, }# U! }, O6 |: k; u& C6 m7 j

1 O" j: {1 C6 x
( j7 J/ p/ G2 k' b% g0 o
* p; n3 V( B) K+ Q8 d& U1 ?2 r; j, Z2 F7 M, ^; ^
5 R+ o# `2 F. v/ W1 C  _/ L+ e  ^
) g" {- R; {% [9 h

; K* S6 d/ u. o% j7 V
5 x- J" w! m  X0 m1 A4 s" h/ e
+ V( U# i7 r  ]: v/ F; _3 E
/ X% ?9 A( a( T( M: m& x6 G9 {; N7 ~+ I* P
0 R' \1 S  R$ ^- d; Y  u
  t) w1 L& F& I+ B" n9 O1 N

2 Z+ N/ ^$ z; C+ h+ I. z. n8 Y6 J; H0 y8 _! }' A* e" z' `

+ x1 x. J4 D+ D7 k5 w2 s2 O0 I9 Q. H6 X! z& q2 b

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

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

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

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