开启左侧

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

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

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

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

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。
1 s) R1 u3 q& E$ ^! K5 a9 J* z) j2 {$ n
$ n% N( j$ {$ @' c6 B7 q先是将代码测试贴在一个专题页底部:https://www.beimeilife.com/portal.php?mod=topic&topicid=35% C- B: b- z8 u4 ]! g' Y
却不显示。
. P) [) A' K9 F7 X8 m
& J/ K& h, a; C$ ^  T  a查询下,木有头绪, 所以自前天就给Google Adsense 查询:4 r3 `( n; w7 o
https://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense
3 F5 J7 Q" D1 q+ W% L' M, t' }; j8 b5 q0 ^' V
网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://beimeilife.duckdns.org/beimeilife.com 打开就会出现( R; _! k7 u7 Y5 F( D& T4 k; f

1 X2 |/ T- `9 m6 Y6 T; iThis webpage has a redirect loop. k1 v1 r( q8 T# U6 Y

+ O0 T8 P/ ?8 W" s7 A0 W- q6 B才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。* J4 F8 D7 \9 {$ U7 ]
* J8 l# X8 c- j: T
熬了一天一夜都没有效果, 气馁,放弃!!1 ^, {! f; v0 s: s9 z2 D1 K

3 G/ B. ^$ k" l$ O& {* q) p4 ]7 A) x* P4 ]
& M$ d! z' T, ~- j6 r
3 a2 F0 b8 s- s( i/ Y2 L
' c" p/ a$ Y9 u3 S


转载请保留当前帖子的链接: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* m6 s1 C5 H0 t  j/ j
/ K; B4 e+ O, m4 F3 u8 W
ads not showing on my website
4 s! y+ M% I4 {% d7 @; J
Can anyone help me with this?
* s" O. |3 ~7 @0 Y( p. {, B2 e: h* ^, Z9 _* @5 C8 B
I put it on the bottom of the webpage:
5 ]- b+ B3 j( ~5 u) X; h* G
# n( J1 o" l& y3 R3 a: \$ [https://www.beimeilife.com/portal.php?mod=topic&topicid=32
6 `: Z, l+ S/ S" ~# P" c, t  l) ^% V. `. f8 u/ `
/ Z+ f4 w# G6 b- e* y3 L1 G/ S# D
This webpage has a redirect loop! L! ?# g# M# {1 V$ _
[size=0.86em]ERR_TOO_MANY_REDIRECTS
' c2 A3 H; B" y: W+ [& u4 W6 |2 @9 n+ M, K) r

* I' D' o' k! _: Y* l% [/ l# DYour website URL is:
6 R; r8 P$ I7 p7 L) H. a) f. {( S: f- d
https://beimeilife.com/portal.php not the URL you left.; H+ o- }$ h$ m- u

9 f0 W. m( n+ w$ d/ {" uPlus, 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
' }- J8 a% C) u; Z1 o# A4 Q1 X* n. k2 {' d8 r
! S# h8 Y; A3 \! f' k+ {& P+ y7 k

$ a  `+ N/ \3 FYour website URL is:' n4 p7 E3 [1 U
& |7 n. f( ^* r2 ]) w4 k8 ]- c/ c
https://beimeilife.com/portal.php not the URL you left.6 v+ V+ C$ f/ {% }9 M8 V. D& B
  Q, ?+ H, W* W  L: ^* Z
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.php& G$ t: [4 P1 h
0 {  M/ T% @5 c  \
! c" _" ~& `' C- Y
9 M2 w! L$ L. U2 M: `$ D
Many Thanks for your prompt reply and help.. P4 H0 ~9 H) E. N1 n" q& j
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.
4 X) t" K( r2 A, }( U! x3 @( O
( m! @  Y$ a3 c
7 o$ \/ P( j: e+ G9 d2 FGracey said:  
" r( v. p  f! ]No, that's not quite what I mean.4 |0 x- O9 x+ s! U( s. h
When you apply for Adsense you have to supply the URL of your website, right?/ S% j0 y* {; z% Q0 }9 A7 b

; p" s: k# H+ }( k  }8 V% N3 W# k. ?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/,
( d/ @, D- ]6 l* k
. Y9 E  e9 u. c' \+ A! aSo, 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?
2 X" j" _2 t$ I* ^
- ]& @6 L5 d$ I" `* s8 jThe URL I see is https://beimeilife.com/portal.php  <--- and that not the URL you told AdSense was the URL for your website.
) y  ^+ D9 _4 |8 E% x& p& q& U: N* ^# D4 h
Your website's URL has to be the page that loads. It can't be https://beimeilife.com/portal.php+ w. d1 o7 \* u( M9 W' E8 _% p

9 T+ K$ K# G/ M& r7 v' f- g- [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.3 K! k! d( s# Z6 Y6 S
5 m2 I5 W5 h% X0 m4 n
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.
# k4 Y$ M; k' v3 O( L& z- S2 A, |& E8 `2 d
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.
3 P  t  Z) a7 {: x2 e3 i
( P6 l8 ^% C) x) F" ]3 j2 X' f  |4 h
% T' ]/ Q. f$ f/ e+ v; I2 {I said:  
. F# K$ o: D5 Q2 N' t) n1 kI 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?  A# T: k* x- d; ?6 x. ?

- r! [! x+ s. n$ b& t  dThis really drives me crazy now, need a rope on the neck. 8 l1 [/ K* {0 }3 C* _7 \9 j- }2 |
+ c2 g( n9 [$ t4 J# N/ Y
I said:  
9 ~7 @* d- @' \/ y( `  l0 `let me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ+ e2 K. U9 X- U# i! _; l
I said:  0 n0 a' k5 x8 o7 D8 J6 A/ z
no problem, that means something wrong with my site settings.
4 B% X' m$ H# Q" Y, S" ?0 i, {* |
# R$ ?- `7 F  J( P- m/ J" ^' L! t1 \+ r: c
Gracey said:    K! V' {5 ]; Z& ]
.htaccess is not how you fix that. You need to change the DNS settings.7 \+ w) r2 @0 O& [; f# r2 a4 X; f
! L3 ?6 Y4 D7 I4 f: }

* C) O- a1 ~1 D  E9 d
6 ?3 v# a% a& \0 i' s2 d6 [& e0 T& t- r( V" O
, [  d% |2 P: n  d5 r* \
8 e- Q- i: I! q- `! t4 d

4 }* v. c# X# k* R9 A2 u
4 I$ h1 f8 w' Z% A$ n7 \* ~
, K$ a/ u9 [, a' M/ x; m3 S( \) M* j' |9 l# N8 D8 T- E
2 L: O9 ^1 O& E3 K, [
& B$ N) q( s: V9 f
- S3 B: f; ~  @
( i5 v: M6 ~- k6 X- y
4 z  i+ y$ }$ q0 h1 d
( q( S2 Q, y$ q" b( ^3 l: Z
- y, ]1 U* ?5 s3 [7 a0 V3 H

5 c/ c, m; ^1 P5 M
1 I# u$ {7 p2 p4 a
  T" S) M2 G" n! D6 I& G( Z
+ U  I5 d6 a% W
0 E5 j7 `( k; A1 \/ y& i; f# O( ~4 t: c
) j; w& M; ~# j9 k* S
板凳
发表于 2015-11-17 02:25 | 只看该作者
关于域名定向转换,这是一篇好文章:
) Y8 p% D6 V( C3 ]  v& f
, M" X& x0 A. B: J7 l( Uhttp://blog.viewzhao.com/2014/06/page/2
; z1 m1 `# c( f. |: X4 las well:
7 M) J1 Z) A; ~7 T  o/ f( X! j8 ~4 B/ D, v
https://my.fastdomain.com/cgi/help/htaccess_redirect" [* l4 m3 {# x# Q1 n* i7 W8 O

# f/ w7 [8 d: k2 Nhttp://www.discuz.net/thread-2130491-1-1.html
: b" x. k& y6 d1 V6 @: r- A) ~8 O
地板
发表于 2015-11-17 02:26 | 只看该作者
加强版 google和百度sitemap for discuzX2.0-X3.2
! Q( d' I; G% m. @  }3 H) d+ E
: f+ K7 l6 `# m2 d, U" |9 phttp://www.discuz.net/thread-2474942-1-1.html

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

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

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

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