开启左侧

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

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

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

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

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。" O1 }* a; N) S4 @0 Q9 h, T9 ?6 ~  y
) ]% d+ F5 p8 P1 l! i8 l* p3 K
先是将代码测试贴在一个专题页底部:https://www.beimeilife.com/portal.php?mod=topic&topicid=35* F  r' I  h1 [2 M3 w( m- l
却不显示。/ x% b* x/ q7 m8 ~+ a+ u

$ C8 j& k7 O" `+ X9 L查询下,木有头绪, 所以自前天就给Google Adsense 查询:
/ ~0 H- H- H- K3 r* mhttps://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense  }" t3 a  [' n: V% I% z
) ~4 ?7 N8 O1 I8 \. Q
网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://beimeilife.duckdns.org/beimeilife.com 打开就会出现  ~. \1 d: T3 k

2 v0 F* P+ ?) O) n6 R/ ?, O9 d. DThis webpage has a redirect loop
1 _# O( o4 ^2 S8 s
# X/ z3 ]/ \* B: l# T才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。
; q: S" m  x+ o. w0 U% b  I
% b) |) ?8 b7 e1 \6 a熬了一天一夜都没有效果, 气馁,放弃!!% k, r% W; v4 {4 ^1 U5 n
* e7 }8 M& P3 X" j2 w  p/ H) w

) Y) Q( G) a5 O& h+ x. D- L' [0 E+ P$ w
5 ~8 r1 L4 v# {7 v2 c8 t
/ ^+ t5 L6 C  H2 [1 v


转载请保留当前帖子的链接: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
! `( r. x- Y) G, v( j, b. ]) ]( F- f) K2 s
ads not showing on my website

& Z3 W" j2 s" f0 UCan anyone help me with this?
& [/ Z/ _, a) r. \% H' f! I) J: T+ e6 _! m
I put it on the bottom of the webpage:1 G- X2 X& @- o% W! s6 ]4 `
, }: |7 Y! j6 k" ]; N# L
https://www.beimeilife.com/portal.php?mod=topic&topicid=32  ^8 G3 b) r- v) {6 d  X, {0 v# j; \5 P

5 S6 F: Y/ J8 H
9 h) d5 w! L% a  m& VThis webpage has a redirect loop* x# k/ n* A/ L5 o
[size=0.86em]ERR_TOO_MANY_REDIRECTS
5 H) j/ K0 u1 \0 {5 V  x/ D% P; e5 y8 T

" P0 l% f! S; h. V" FYour website URL is:" y  ?1 @$ c% e
1 I( w9 u1 V% {: b" O
https://beimeilife.com/portal.php not the URL you left.* f  d8 B' Y) U: m- b( x  J* d& _; `

7 G0 n& j6 t7 o1 o9 x- jPlus, 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
+ Q& f2 \7 E2 d8 [3 l
2 _: f- C2 {( i7 b" O# e" j* W) M! [. G' E; @
% j+ D! L& t# n9 H
Your website URL is:+ @; n6 D( k, a' t1 r

- ~$ P" p8 K( P  ^https://beimeilife.com/portal.php not the URL you left.% e  j; i& ]1 o: d

* g1 W0 x& z1 n" [) QPlus, 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) A5 B4 _' R. i

7 K8 o( ~) x& w: W/ @/ V2 e9 \+ E9 V+ r6 |$ _
. ?3 L+ e$ B  C" c' {
Many Thanks for your prompt reply and help.0 ?" D4 g* p6 `
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.
/ S- e# M$ ~) V1 N" u3 O7 ^% }5 }
0 l# h/ P& G% l& y+ m/ a; o. D6 {% [  e/ ^
Gracey said:  
; Q1 T' m/ E# O. M7 l5 o" MNo, that's not quite what I mean.
+ Y% P3 Q0 L- U/ }4 ZWhen you apply for Adsense you have to supply the URL of your website, right?
1 Y% v. N- ^" }$ m5 K5 z( g! V8 J) @, `3 u0 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/,% b4 G5 w- d' h0 c' r1 o

) y) v- S  r0 C2 |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?
. j9 z, |4 a( Q  @6 ?
" c+ b/ P( `* _* }- VThe URL I see is https://beimeilife.com/portal.php  <--- and that not the URL you told AdSense was the URL for your website.
, h  W: [% _/ v" O; @
% x& C6 s* X3 {3 y, Z" i+ iYour website's URL has to be the page that loads. It can't be https://beimeilife.com/portal.php1 G" v- y9 v& k! w  O: X- w4 h
3 V- H/ w. I( C
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.
: z- b& w( H( z; d) Y
; K0 W( k* J' b2 o) W3 TYou 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.0 q6 i/ a# I0 u) @  V

; h/ ?7 `1 U8 g8 S) N. v$ j7 l0 HWhen 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.% b6 q, Y! f& g/ v  [
! |, @$ W3 h% x' }8 j

7 b, w1 H0 F! A  m  M; D4 c% ^  N! RI said:  2 [6 k6 k) B$ A. c( ^2 j  v. @- A$ q
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?7 p: d5 s3 _% ]+ y

5 H0 z  `# E3 {This really drives me crazy now, need a rope on the neck.
/ U8 B2 }8 g+ N' q: a- y" y* z8 e$ D( E1 q, \+ x1 G$ ?2 s
I said:  
6 ]. i7 {2 ^& Y& l6 F& G+ [let me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ8 b5 ?- p- Z" D8 v" F- t1 r$ V
I said:  
: z! O. }9 t! r4 n$ `/ `, D; ^% w0 o) Gno problem, that means something wrong with my site settings.% k6 N" }1 H6 x/ `  _* D
3 p' `) \/ v3 d/ }/ I
7 D! R5 \0 A' K* w2 F8 M
Gracey said:  
8 H) v7 ?! R. l# _% s.htaccess is not how you fix that. You need to change the DNS settings.
* i& ^9 \/ x) r! W
" I0 O; G/ O  \% U8 |: K
3 B' @5 h% ]/ q: W( I- }2 r' {" b( S+ ^) o; O( K( B1 a, P1 ]. f1 D

7 ~/ Y' w1 L& h
# Z2 V, A4 o6 Z: P! T3 B! `
: o8 m! t( _$ v1 u, x5 d- q: s& g) H  J, \! s$ R6 r

6 s* ?  U' Y0 t+ b3 F6 M" F% I( l
! q( s! r/ Y  f9 T2 u6 [. r) M5 x
* o: u( N6 Y* J; p/ E5 e# o
( o$ k' |+ [/ T0 |7 u  T0 X- e0 B! _( N4 O2 r4 }) N4 c$ w
- v2 m' G0 F3 E! a/ L
& D" O# d/ G9 W: s8 Q; B) Z
3 Y' U) [8 T) }
$ Q  E, W" U4 s/ h
: U1 V# {% C. {

; C4 B! D3 e, l- Y# V( T
3 `( v6 j. P7 ?& k1 Y7 k" |7 O
, s. ~. w* v, V6 s& s$ Z5 j' h( ]/ _: {" R$ @3 ?

6 i& |: W, L  ^. T' P  j& }8 j9 _
$ e9 I9 Z/ w2 r$ \9 V) ?  F( ^3 F9 _/ W8 n' W) q5 M# Z! J$ {
板凳
发表于 2015-11-17 02:25 | 只看该作者
关于域名定向转换,这是一篇好文章:$ }# ^4 l  a* e
2 s5 c& }* Z# I  Z
http://blog.viewzhao.com/2014/06/page/2
, q+ s: C+ c5 B- h& |as well:6 }: K) P, d" {* [% `& A+ `
# r* t* T" j* r( v3 Z) i
https://my.fastdomain.com/cgi/help/htaccess_redirect
  x/ s; Z) M9 i6 L; O& `* ~" K, \+ ~: ?8 [7 G
http://www.discuz.net/thread-2130491-1-1.html
9 Y3 @  k. {$ e% t
地板
发表于 2015-11-17 02:26 | 只看该作者
加强版 google和百度sitemap for discuzX2.0-X3.2' s0 ]+ x1 Y( `6 B

  P9 N! H; k/ w2 j" u) ehttp://www.discuz.net/thread-2474942-1-1.html

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

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

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

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