开启左侧

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

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

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

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

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。
& f5 p4 i3 g2 J& |( Z% P/ g7 y" E1 j
) }) `: R) `! ~1 L8 M1 J) \先是将代码测试贴在一个专题页底部:http://www.beimeilife.com/portal.php?mod=topic&topicid=352 e, D! z+ a7 I! Q9 P/ g- z
却不显示。
) P& m- [8 x1 _, c- Z0 M; d) [! _% ]! Q( L$ i+ U3 K  U
查询下,木有头绪, 所以自前天就给Google Adsense 查询:9 y; q- R/ v( B! g% A7 L1 Z& C
https://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense8 ]3 M: X: k  {" u) H

9 X: {. \' ]+ S! r" m! v/ b网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://www.beimeilife.com/beimeilife.com 打开就会出现: x, G' s# M# U8 L) E$ D
- A3 e/ l7 o8 ^: G, G& M5 O4 D8 z
This webpage has a redirect loop
4 D7 v3 H" Q! E* w
. [( U! ]) E# D9 P1 T, j2 l才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。* _1 G/ s2 D  [
! d1 z$ t* l( }9 S1 G7 A! ?
熬了一天一夜都没有效果, 气馁,放弃!!) Y: y0 J& V+ B6 D

9 S- A2 g/ V7 D' T# x# q8 b6 u& K8 M" _0 `5 S
; v, q' O9 j4 F5 a; t

( i, l, |+ k! V7 c) I
+ m3 _% r! U5 z: U

转载请保留当前帖子的链接:http://www.beimeilife.com/thread-2724-1-1.html 谢谢!
发表于 2015-11-13 22:26 | 显示全部楼层
https://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense
# z3 g9 E) _2 L: p4 U; i2 r
* ~+ P+ d  M4 W) e6 d1 w9 E6 Q- B# q9 jads not showing on my website

1 _# g8 w0 |6 B; c; ICan anyone help me with this?, ^! [: I6 I. W( m8 q, u7 I

& l: U! k9 M) a, K I put it on the bottom of the webpage:& d! g% g. [* {0 W+ x- R! m

* ~% J& Z; \& Z+ j* J6 a( Yhttp://www.beimeilife.com/portal.php?mod=topic&topicid=32
8 `' l  j5 \2 }2 P; y7 d# ~6 K8 M+ q
& @# C& u; t6 g
! j. L' J0 b* p7 D8 wThis webpage has a redirect loop
6 V; [! {, \8 j7 X- j& u1 a/ f  j* G$ g[size=0.86em]ERR_TOO_MANY_REDIRECTS+ |1 J  m3 |+ u3 N% u* h1 ?

9 r+ A" F2 D, B9 b) P
8 a# O4 ~* D, a) ~Your website URL is:
3 Z" e! ^1 p+ ]7 Q0 y$ o, e
  w  Y  X1 p" q6 W. f/ ohttp://beimeilife.com/portal.php not the URL you left.
: g6 I% n4 t  `. i6 y* ?& J* N# T0 Y2 k5 J  k
Plus, you can't possibly have applied with the URL you left, so I assume you applied with beimeilife.com, which redirects to http://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 http://beimeilife.com/portal.php
& y; Q) s9 L/ x6 N9 I! C: ~5 R/ T2 |) p/ }  l# Z1 N' [3 U

& T; o; u! J1 A$ _, Y/ E2 ^2 k' e+ ~4 A. ^) a- w$ x
Your website URL is:
/ _: s, ^# u# O& H: X' |7 [: k/ S! b
8 q3 D2 W; Y7 d% t: W, q5 Phttp://beimeilife.com/portal.php not the URL you left.: ?  b; k8 Y1 n; r

# U# m+ a) s+ g- M" y3 HPlus, you can't possibly have applied with the URL you left, so I assume you applied with beimeilife.com, which redirects to http://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 http://beimeilife.com/portal.php
, ^: r* G$ N/ U' I; h+ V! m3 w
, ?# u. H8 c0 J) W2 y4 A% a
2 N8 N: ?* G0 K: C& C$ U$ ~
3 |' d( U. O2 ?& Q! i& EMany Thanks for your prompt reply and help.
6 V5 d' Z* Q2 D( F& ?, F$ U+ h" N8 |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.
/ O* ]+ h5 s  ], Z( u2 m* @6 J/ L8 n; E/ `
. l. Y7 r& c3 `& r+ a
Gracey said:  , G. Q8 `& s8 F' G
No, that's not quite what I mean.
; q% k* ~$ H8 e* t" J7 X2 g2 iWhen you apply for Adsense you have to supply the URL of your website, right?
1 P& M( [, |  J  O5 m0 u2 }
. Q0 D. W% w( H4 y. y1 lThe URL I assume you supplied was this one: http://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 http://beimeilife.com/,. Z# K! k; r/ }

7 [) T8 X: d- W( Y* pSo, 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?4 j; }7 H  I  m$ y
$ ^. Q. A. {' ^2 n& L
The URL I see is http://beimeilife.com/portal.php  <--- and that not the URL you told AdSense was the URL for your website./ |! p3 T, u5 N; C
1 B- E8 c% W* e5 y, ]1 u
Your website's URL has to be the page that loads. It can't be http://beimeilife.com/portal.php, T  \3 w+ N# }0 ~4 ]

; J4 X- ~! S' q5 m; w. f  N0 D% z; xI'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 ^. ?  W6 b# A: D5 K
' J2 n: g! r+ y$ f  D+ H* ZYou 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.
$ G) o! j8 q( k. @: B! M" ^0 a9 w
& v+ c/ F2 M5 y$ `) E3 `- FWhen they go to http://beimeilife.com/ with their crawler, the crawler will stop. It won't go on to http://beimeilife.com/portal.php, so it won't see anything on your site, including the ad code.; A! H* \- t% F/ t' g7 C' J

( s7 l# B' s5 r4 n8 g* g1 @8 g3 m. A$ A6 Q3 b) f
I said:  0 `0 ?$ i8 g4 p, ^! N3 b
I modified .htaccess, and also modified Apache server redirect the http://beimeilife.com/ to [url=]www.beimeilife.com. On[/url] any browser( Chrome/IE/FF, http://beimeilife.com/ has no problem redirecting to http://www.beimeilife.com/, I also checked the http://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?
  x9 u. s# Y/ ~) }- X
9 \2 H8 E- }1 z5 W( `# l8 ^This really drives me crazy now, need a rope on the neck.
2 m  m6 t% Z1 J
5 k( m! a, g* tI said:  8 c) M; X' L: d0 D: L2 g+ Y3 f
let me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ
2 S1 b) N: b. s' C; J: w5 }* EI said:  
' A# I4 t* U+ F! i, Tno problem, that means something wrong with my site settings.; D6 R# n& g5 R; D: P2 T

7 f3 r4 @: ?  b& o& U- M8 h" O. m! L( Z* w. L% ], E
Gracey said:  
( C" C9 K# @( ]0 D+ @.htaccess is not how you fix that. You need to change the DNS settings.6 L" \- o  e5 C

( ?7 Q8 w$ f, w' q, c8 b0 O
( Q' X6 @. V: T5 S( C% A: q" y1 F
/ s; O# f' c" |" o* C. L* P  T  \+ A: W! o
( j/ Q' W& p+ d; P

2 c, }4 y+ T, W+ o, U5 ^
! R3 x. k) j. ~& s8 W
3 D7 e+ L- y+ ~8 O, Z
9 a  Y8 `" W0 e' O4 T+ A
3 I- S0 w9 G0 F+ Z
8 P$ \7 K, `9 u7 C7 Q6 e% c4 U- I- u" o0 x  S

7 F. d/ D  T: Y$ c
7 G. }/ a3 R4 u- H  u9 B: y, o% w
4 p) v* s& _0 e8 ~& M
$ G& E2 i2 Q9 A3 N* w! R* B( L0 i& ?0 y
5 C( z' i& I0 K- ^5 c' [* r8 K
  E4 Q  t! u1 R5 u

+ l; T/ P! I1 ?" X+ h/ L8 W  ]; U3 l" I7 X( Y- ^

  W4 P2 h- O$ F/ Y
) y% T, @' G2 k, J# T  @, K6 @: c/ p; n, t7 ]
发表于 2015-11-17 01:25 | 显示全部楼层
关于域名定向转换,这是一篇好文章:+ e# g' M! e( \- C; A

' a4 R* r. I& o. ], lhttp://blog.viewzhao.com/2014/06/page/2
( J$ n; V: Y" Z6 `* X" C( S0 has well:
7 @0 H8 D/ h# G8 {6 x6 W% @) u% h8 b& O' L. ?3 _3 @& {
https://my.fastdomain.com/cgi/help/htaccess_redirect
2 z6 q6 M+ e# f8 u8 m: f
# f: O8 n" v- G. u2 Shttp://www.discuz.net/thread-2130491-1-1.html# h  Q" p5 i) U9 V( d  X5 g+ L
发表于 2015-11-17 01:26 | 显示全部楼层
加强版 google和百度sitemap for discuzX2.0-X3.25 u& q+ T! L( _& y% A- g8 S( |$ I
: M% u2 G) P7 Z- \( a
http://www.discuz.net/thread-2474942-1-1.html

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

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

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

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