开启左侧

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

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

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

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

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。
; F4 l2 t( A+ A& ?8 w+ K7 E6 B! i3 J5 K; F; |: R3 W- p
先是将代码测试贴在一个专题页底部:https://www.beimeilife.com/portal.php?mod=topic&topicid=35
. L' ~7 l0 U. ~( g却不显示。6 @2 I7 }( f: X; K& |# M
8 @: {' W$ i  u
查询下,木有头绪, 所以自前天就给Google Adsense 查询:
9 X) M" G4 I( Z: z5 Mhttps://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense
* i; H9 n' Y6 L# V6 I" M- W
/ ]0 W9 v0 d8 b( Y网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://beimeilife.duckdns.org/beimeilife.com 打开就会出现, ]/ L: S9 K4 O2 C
" S2 m/ J' M# L  Y6 o9 k9 T
This webpage has a redirect loop
$ j- R! v, g8 l, B0 N$ `5 y1 X' `1 s8 A- z+ ?9 p5 d5 F7 }
才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。8 f7 Z2 G$ P: R7 r- s& w8 s

% l# l/ `& j& X熬了一天一夜都没有效果, 气馁,放弃!!
# p4 [: w! y& p4 Q0 D& w! Q
( `/ h8 v( ?# L2 H" L. k
2 ~* ?5 a- H! K& z4 [4 h# B# Q8 U: i6 V2 x. {8 r8 ]3 M* Z
8 q! f6 T! a0 x
# P% C5 r& Q" Z+ V: f1 D


转载请保留当前帖子的链接: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
  ]7 w) K6 N+ P1 N2 s1 D! u. y# D2 C
ads not showing on my website

! s9 G" t0 l5 a' T  ECan anyone help me with this?
1 H. J; G" c  }5 [& `& ?! ]- W  ~" C2 p* |+ |4 t. D
I put it on the bottom of the webpage:! V$ _& W, Q. |. H+ J5 ^- p, B; g
8 K- ?3 I2 m- M' j7 l8 k
https://www.beimeilife.com/portal.php?mod=topic&topicid=32
3 u: \9 w5 E" J7 k& X8 }
1 |* x4 S9 j) `" S' j
( w: z3 ^# r  E  f. m0 N% RThis webpage has a redirect loop
6 _: J7 z* A6 B8 N' R[size=0.86em]ERR_TOO_MANY_REDIRECTS% `3 L4 j6 l( z  f
1 H8 T* Y) L% ~
* q  y( f  I2 C1 @9 G
Your website URL is:
/ q" }: w3 e; ?4 Z
4 g, v7 a' S7 _6 m! u6 ohttps://beimeilife.com/portal.php not the URL you left.
$ p, o. \0 d1 k: @; c# X2 R; }# M+ X- x/ H5 T
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
+ [1 W& v- b. R, H
2 i& L7 m5 z9 d$ R8 m; X3 a+ M+ P* Y( G# W) k/ ]+ t! x: D* E

$ I- H  @  |- DYour website URL is:* p& |* ~: _9 ^6 S5 c

- V' k; p& @3 qhttps://beimeilife.com/portal.php not the URL you left.3 @( p! z, v5 U
+ N3 M7 o& H, s, u9 p& z5 O- y
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
# a. Q' a' S3 P! k0 b7 `* M. p$ o
9 l( `" w$ Q% v' V4 F; {, j% y5 N1 J9 u3 n# ]& f% ^

! @( @1 N8 e1 p4 p' E8 iMany Thanks for your prompt reply and help.( b! s* W6 s' K( M8 A
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. C- }: s/ N

7 s3 c) V' Y, s7 C& x. U1 @
! |: ?, j4 ]" o' L, c" m, nGracey said:  
) X0 u% M, e8 LNo, that's not quite what I mean.% b- n/ z& ~  j. ~- ~1 v1 J3 I
When you apply for Adsense you have to supply the URL of your website, right?3 c/ k' K" ?8 e+ \4 i! `# X: Y
6 r5 ?* L+ e+ n# W+ m5 e& t& N
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/,, _- L# M4 h% A; a
: z# ~5 k( N3 [+ l4 F
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?- ^8 M1 A' P' W0 `" N
8 e+ N7 Z8 p$ Q* i
The URL I see is https://beimeilife.com/portal.php  <--- and that not the URL you told AdSense was the URL for your website.8 B* s+ w3 U2 [4 J) X: x
; d* E: W9 r* }& n6 n
Your website's URL has to be the page that loads. It can't be https://beimeilife.com/portal.php
0 {+ b- ?+ W. B& p# c
/ I/ |% z; h( S2 j- e8 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.
9 F6 t; {% K% J$ \
0 w4 T5 v. I9 Q2 L5 j$ PYou 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.& b( {, p: q/ Y

$ x) O* v0 r( R. u: v# XWhen 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.! H2 K- A( S$ B4 r$ A  P
! o* {% Y+ g& g% a, c

7 |# w9 r8 Y+ |9 I# J# qI said:  - t0 @, i0 c8 Z) A
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?( B* u, X0 P* G
# s+ o* V1 Y5 t
This really drives me crazy now, need a rope on the neck. * H, Z1 V/ L7 }9 @

* D" b7 }1 C! n. Y! c/ v7 P) [I said:  $ [0 c- M8 e  |% [
let me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ
/ \8 d3 W2 u0 `I said:  7 A* s! F; {3 @
no problem, that means something wrong with my site settings.$ w2 g6 Q8 V$ t9 Y7 y

7 l$ a/ h" K/ q# J) r$ p- }
( K1 [( r' _/ L+ k& s9 {7 |Gracey said:  & Q4 c- [6 v! M8 q
.htaccess is not how you fix that. You need to change the DNS settings.
. L$ g$ R: S. I( T3 U, O3 e6 r) T- z

) ], u3 F( B/ i6 }- U- ~+ ]' q& m8 ~2 l% \+ J

2 b1 ]2 E0 w" n7 G9 P& d( x+ G7 t, A8 b

8 v4 _% U5 u* H2 o+ D' \  K: ?( G! a! v- f3 K
+ ^6 q: _/ c4 T+ Q, w1 W/ m% |8 R
2 V; L; x' j4 v0 |" R

, U$ Q  C0 b4 L: C* R
3 n) V5 E  q" X: G9 e% T6 c
% d. i7 M# @$ Q- B) S7 I8 i7 g- {
) V) N3 j3 A1 x" d, V
9 _3 G( S: w$ P% c. \- h9 Q' A) Y" n, _" ^0 u6 H% m. @4 d
( g7 @) _; O* l! ^9 Z- a, G

3 r/ G& |$ \% s- M5 b; g! c& ^9 m4 H) Q8 \/ K+ w/ E
9 {: L; v+ T, E- Q' G7 e; ^* I
: |' v$ U# Q7 l
: m: K. |; C, i9 [. O& q; k

- z9 i3 S, h* d8 v; p1 D
& p) v, ^, C+ A) s# P5 Z9 z; k1 U3 r& |1 y) s# x& i- X! o4 {
板凳
发表于 2015-11-17 02:25 | 只看该作者
关于域名定向转换,这是一篇好文章:7 `, d1 F" M) e* G7 t2 P
  {& p6 j& c& n- {/ y
http://blog.viewzhao.com/2014/06/page/2# o3 d, L9 I+ t
as well:
$ a3 O  `, m3 @) N/ s7 Z
2 A" f; ]4 }+ v; p3 F1 T4 Phttps://my.fastdomain.com/cgi/help/htaccess_redirect6 R5 C/ ^7 A  U1 b/ b0 b3 f* R

- v. E  \& }& O! d2 y. ]http://www.discuz.net/thread-2130491-1-1.html/ v' U" j, ?8 }; E3 W2 O
地板
发表于 2015-11-17 02:26 | 只看该作者
加强版 google和百度sitemap for discuzX2.0-X3.2
, ?0 r! \9 ~/ z* p# A5 s" M0 y6 `- d) [; T4 [/ y' x
http://www.discuz.net/thread-2474942-1-1.html

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

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

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

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