开启左侧

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

[复制链接]
发表于 2015-11-13 23:24 | 显示全部楼层 |阅读模式

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

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

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。
$ _6 M, d5 M) c: H9 K8 D& c( X5 w' f# U, j5 a( }0 O
先是将代码测试贴在一个专题页底部:http://www.beimeilife.com/portal.php?mod=topic&topicid=35, A* T; I9 H! {$ f' k) \
却不显示。/ s! t" ]; |9 E4 \3 I7 ~

4 ^- H7 v* l/ J7 P查询下,木有头绪, 所以自前天就给Google Adsense 查询:6 P/ x$ G8 u/ _3 N0 k
https://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense8 |- z  k5 Q+ K1 E

0 o4 c$ c2 b2 K6 v8 W& N' J4 F; P网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://www.beimeilife.com/beimeilife.com 打开就会出现1 V* n6 _+ f/ y# t3 z/ W& Z

  Y, q& ]  O7 k' w6 M! dThis webpage has a redirect loop. e' E4 ]4 w0 E) k/ L+ `
7 G- |" F+ m! \! s0 _7 |( G
才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。
# u6 E: ]/ O) `- i  T5 `9 c
; d! v$ }1 m5 q# @( Y熬了一天一夜都没有效果, 气馁,放弃!!( l4 ^8 @4 Q: G- I" z. _0 p2 [" O
  c( B  B& x1 R' w
* H. S7 K# o0 G4 I1 _. u
" K/ F2 Y8 a2 P: }
* R  J8 `3 n2 I) e8 M- u
8 ~$ \# f* }7 z5 ]: j% X0 O


转载请保留当前帖子的链接: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  B" ]1 L0 g# m# @3 y$ K% R
3 ?" v) n5 d" s' j
ads not showing on my website

8 u3 W9 H/ l/ Y  \7 UCan anyone help me with this?
- V* s" l, b: ^1 y
, m' ]/ W2 x) [8 z9 Z7 A4 ` I put it on the bottom of the webpage:2 {* |, r/ P5 m% c
  O1 E1 Y* A$ |( h$ Y; S' N. T
http://www.beimeilife.com/portal.php?mod=topic&topicid=32
8 y' o9 e! i' g( b
7 I' P2 [3 H9 A& p- z* _! _3 ?0 ]. [6 y$ i3 K. O
This webpage has a redirect loop
) T" ^4 Z6 t! C  Q3 l, W[size=0.86em]ERR_TOO_MANY_REDIRECTS+ N4 k+ _: u/ @# u+ v
& Y7 i: J3 L. a- s

' `" B* L9 R3 X( g5 ?/ A; xYour website URL is:
, v6 p& n, p( p0 e; A: D, f7 J/ u9 G# h2 S5 c
https://beimeilife.com/portal.php not the URL you left.( P1 R4 P- I  H  `& S' E: l

/ P' ]8 e1 _3 E# o, DPlus, 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
8 P( Z$ v5 ]  O9 q9 v4 |/ _" {. _: d2 T* F+ g/ F( u
4 X7 q$ u! {* e- j, a1 @5 i" J
* ]- B& Y7 M, H7 ~* U  m, X
Your website URL is:5 P' h; S& ]" ]0 v

% }' V: b  Z9 D0 q$ g. \/ dhttps://beimeilife.com/portal.php not the URL you left.& W- u' Y* O% F% I$ }8 N1 x
+ g, y, g; U' M' B
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
9 \* n/ J- @& h
5 r" k( q. [# L  _$ y4 f( q
) m3 P$ @7 W+ a9 o7 b' u
: Q: P& z4 J1 D& w# k( J$ pMany Thanks for your prompt reply and help.5 {' H; N( C4 s  K
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 http://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.
9 }3 Z% ~7 }' l1 P7 l8 o0 P- f- |+ s+ v

* h5 B8 r! ^: G- G) p! K. w, i  EGracey said:  
4 H8 U9 y; ^7 Z$ L- _No, that's not quite what I mean.! g4 V+ a- S" r) Y. a1 I  w$ ?
When you apply for Adsense you have to supply the URL of your website, right?$ i2 B$ J- T* G- d( K, V$ J
' n5 t( j; A" O* ?' x2 V2 l
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/,
$ p2 f' y1 }+ f; T! {# ~* W9 v& l" E- ~8 O7 `
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?
) a# S7 A  ~6 Z+ v3 Q9 o3 }( l7 L8 H0 D
The URL I see is https://beimeilife.com/portal.php  <--- and that not the URL you told AdSense was the URL for your website.
. F' N0 _1 z0 x0 T
* \  b1 P! u  U; RYour website's URL has to be the page that loads. It can't be https://beimeilife.com/portal.php
, y  Q" B. q0 a# T2 T, F/ N% R! f" D" f
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.: @1 m" T4 e/ l6 V! `

. L* T2 G" \( r  fYou 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.% _; f/ j8 c# f: g( X1 w

7 T6 _$ o) Y% Z: q2 ~/ h  o% 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.
* h, T. v7 B2 }. s
) x2 w  A: ~3 V9 J+ M, _$ ~! R8 R3 N' [1 }& D
I said:  
# b/ s5 f9 {% `: p, n- p9 |: E( mI 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 http://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 http://www.beimeilife.com/ , does this means so no luck to achieve the codes displaying?+ V& D+ |; [/ y. ~4 k+ j

7 V$ n( Y  I% ^6 J7 qThis really drives me crazy now, need a rope on the neck. 3 J( S3 Y6 ?: X) C6 }
! n' |+ F2 L' ]% |0 c
I said:  
3 ^6 y3 p8 i" O4 `/ [let me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ% J3 A2 O9 x  L2 S- J! j
I said:  ) K+ ]4 s( D5 _! U8 ~) A  A
no problem, that means something wrong with my site settings.
! `" h8 Y1 }5 y5 k+ [% l" R% [1 l' C8 L6 C5 \

) x5 t- I9 l8 t3 s' t* uGracey said:  7 `2 {7 C; L4 i$ \/ _5 V
.htaccess is not how you fix that. You need to change the DNS settings.
3 p% a" a! X# e2 ~, J+ B) J
" J- T! t$ V+ w, ?  j5 O# A- N
' e  z0 f" ]2 J3 B2 X1 i% }# U% r6 d( h9 a

7 ^) P2 v) q  O7 g3 A& ^* k' o+ }3 X) n) i$ E5 _. W

' j3 \. w! b5 W% p
. O3 n( c, p( {0 ~! w3 z; M7 k: n4 a( ]$ Z5 x: \
% n' \, [& z" q/ ?  a+ n1 j6 Q

2 H! g6 A  T! @* V# H' w& \" z. c8 q, V. Z4 t! K1 U

# q5 J* t+ ~  [$ `, N2 Z1 y8 `8 u: B  d" O6 i
" U2 a$ l  `% Y4 `

% y4 [% ]3 B. t& _+ d
* P/ Y3 n( i) ^# U5 R
# Y' v# U. {: j/ G* B
: i$ B0 R+ Q; ?& ^8 \5 G9 e
- q: E0 g% J2 l! r4 e6 C% Y4 ~$ h6 R$ N
; C9 s9 b6 r) z* G- n9 I/ x
2 H4 O# R1 _/ w2 j' _

% r7 O" U! |$ k2 |4 K" q* J$ i$ R; ]; T, ?5 ]- q
发表于 2015-11-17 02:25 | 显示全部楼层
关于域名定向转换,这是一篇好文章:
5 {, R& l' A) {6 j, C
, T1 }* w1 y" b0 R3 W* y7 R! R( u9 Zhttp://blog.viewzhao.com/2014/06/page/23 N: B9 O: w) O6 s4 X- j# V" e6 |* \
as well:
3 _9 k0 Z+ L7 L! f: ?' a% p: i+ T5 A9 w' h$ g, ]
https://my.fastdomain.com/cgi/help/htaccess_redirect# z) y5 ~* `/ j7 x, W
9 m9 Z+ Q$ W3 i8 A4 e0 a
http://www.discuz.net/thread-2130491-1-1.html/ b# p* F. p# m. N+ n! T
发表于 2015-11-17 02:26 | 显示全部楼层
加强版 google和百度sitemap for discuzX2.0-X3.2
2 }. }* W2 e- G+ S/ A
! N3 a, @% u0 W( \8 ?& Whttp://www.discuz.net/thread-2474942-1-1.html

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

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

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

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