开启左侧

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

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

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

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

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。! ~* z! h# \! T7 T4 K( l

7 ]9 U8 V/ I$ `8 [! \) v1 e, z先是将代码测试贴在一个专题页底部:https://www.beimeilife.com/portal.php?mod=topic&topicid=35
. O% |3 I7 }  ?却不显示。5 h  n' m2 D1 h* x
3 J- Q4 ^% Q% I
查询下,木有头绪, 所以自前天就给Google Adsense 查询:
6 l! t7 a& v, c# u3 S1 c2 j$ [) yhttps://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense2 m! n4 M2 M8 f, @

2 r- }! i" f: {; Q/ p% W网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://www.beimeilife.com/beimeilife.com 打开就会出现; v; `; J5 {% c0 d

8 o" Y) T- g/ C: NThis webpage has a redirect loop
1 }1 L9 y! W  M; n. }' t2 W, p  d/ F0 _, H# g* V
才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。
8 O- v: {! }6 @& z( ?1 F. N0 t0 w1 o9 Y! I$ m  m* Y+ Q% Z* P; T0 C0 Q
熬了一天一夜都没有效果, 气馁,放弃!!% S& {% X' |. T  J% e1 x) o

: {# }. Z$ \/ ^6 ^. C9 `
8 T5 Q0 G  P, P2 J7 j1 O
6 E  p, ^" G4 G% L2 K' q
3 w5 \5 c; K  L: R) i* G4 {8 c# T3 h9 }8 I; t& m


转载请保留当前帖子的链接: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" q; _* Q( b0 |' F

& `) i  G) j. ~4 M  F. {- [ads not showing on my website

0 P, H: E' I9 H# s  q; aCan anyone help me with this?0 ^2 J( t' S" b
2 q2 U* H4 F% G0 r3 J8 k
I put it on the bottom of the webpage:* S  E. d( j6 Z$ F8 ~

# _7 J8 H" e7 ?5 Jhttps://www.beimeilife.com/portal.php?mod=topic&topicid=32
/ P1 J' @9 i  j1 I( u0 A# ^+ A; H: z2 g7 q# {

# Q, E, }0 ?6 C0 q# z: qThis webpage has a redirect loop2 I; _9 r6 L0 Z$ `# |
[size=0.86em]ERR_TOO_MANY_REDIRECTS
! J  F" F: E5 Z7 f2 E* S7 L
8 a) Z/ ~( g- }
: f$ I* B" ^( G" N7 ^" P" m$ JYour website URL is:
& _$ v- |3 D, w8 x3 K9 Q6 G2 t( i& t' a: m" B$ X' A$ `
https://beimeilife.com/portal.php not the URL you left.' U- N" s  v8 H% Z4 f

% r6 [+ i! u) j% x' y$ i- t/ h* 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$ B/ e7 s$ m6 O2 L2 Y) L
' |/ d+ m( s7 L$ p! F$ i% z# n
. Y' {8 E- Y! p3 |' f6 |
* e  P4 c, z% L7 |1 \
Your website URL is:: H# c" i2 s: F( {( C" O# O
7 d; L- E; I. c% c
https://beimeilife.com/portal.php not the URL you left.
! g2 Q5 i) M* h7 s
. R- K9 f6 g. g2 RPlus, 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! x) e' ~: q$ S9 E$ U
2 v) M' w& R- I* }; j0 B% U1 H" Z  \

% f2 j. j) r& F0 r1 @+ b8 N
( B0 w; L; g2 K7 BMany Thanks for your prompt reply and help.
5 F* I2 E' J1 N- U1 M6 O, \2 uyou 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.' v# I6 i  Z& ?4 M: B

- c1 E$ s( d* q. h2 x; W4 X1 F3 X9 x- e8 t# \
Gracey said:  
! f. v2 W4 b4 E9 e# i! z  hNo, that's not quite what I mean.
* S- V8 J9 z* N9 Y1 W0 G1 UWhen you apply for Adsense you have to supply the URL of your website, right?$ b/ h+ q1 @+ W
9 v4 Q1 ]7 ^& J8 S/ R" r
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/,
9 c* x3 K1 U4 I" a
$ V3 z  }& Z/ \7 t- n; ]+ `  n, A$ fSo, 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?
3 i# _' N, q' x. \' `1 Z( H8 l# Y0 j4 U8 Y* _1 m+ c8 p/ O  w0 Q: C) T, `. Y* v' V
The URL I see is https://beimeilife.com/portal.php  <--- and that not the URL you told AdSense was the URL for your website.
* d: F. [1 Z2 t2 o. h# R. e/ ]
( o3 {6 S& A4 N1 [  fYour website's URL has to be the page that loads. It can't be https://beimeilife.com/portal.php
( O# p- I* X  E6 q5 E0 k9 T" r  Z# n# v3 T3 _
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.: ^2 _5 G5 i) b% H

1 U; e1 q+ v, Z  L# M# c8 SYou 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.
8 a2 W& L0 W; n- u! Q3 x: U4 I  F# j6 `- K& q" f4 c
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.
/ n8 Z0 K; x3 ?9 L, \
9 y; t( l! q$ c4 R2 y8 }6 w- a6 s1 U+ x) L* W- g4 s
I said:  & F8 }! o' A  E& ]
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?/ n) m4 F* q; e. u/ s9 a" k
( d% b( F% {( N2 C6 R4 f
This really drives me crazy now, need a rope on the neck. 8 K- _. v/ S6 n! X/ r) ~9 m% m
/ o( Y5 I! A2 R& U! a, a
I said:  9 O; j1 [* c- r) Y" x* r0 M* Z+ f
let me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ
* j% i  }) V7 C5 o6 o: n: BI said:  
/ W! o) S/ Z2 z- Bno problem, that means something wrong with my site settings.
9 q, ~& \6 |2 o( P6 P; Y& L% X8 Y
$ ^1 p  y  R" w7 p9 B* B
; ]9 G8 C( ~2 H  d+ X0 f# |* QGracey said:  , t4 x! |; r* Y, f6 ?
.htaccess is not how you fix that. You need to change the DNS settings.
! C' c$ M( p# ]% o
8 }( m% F2 S1 T5 y; S; E7 X7 v0 }. u0 Q# u7 `9 X0 l. V2 X

+ S8 R' O9 U: z' \( j/ Y: n/ z- n9 F: D& ~; V0 j1 u

, m! w2 P) Y" ?* Z3 Q* e
+ w3 ^6 _5 A5 C+ O9 Q4 m# n; ?5 X% E  f1 E+ e

( t2 Q) t$ k. W4 t5 R, u, Z( m: f* T( l
7 g5 @- f; f! u" F/ |  m; z- a0 W# ?1 J5 b5 c
5 _, H; x+ Q$ M! h0 T  V. b

5 i3 x4 |1 `! A4 n0 \
: h7 P/ {) |* m6 G5 T# ~; n: f1 @
  r$ Y  T- g& g+ [2 q5 _& D5 A3 x. B7 L9 a  F% Q4 f

' \) n2 i8 l) j- j6 A; f: z0 n
  k) j! Z( Y" W4 F% n9 B) {
2 s1 J8 R$ K2 Q) R" E2 V2 h8 n7 c" E: N# f5 Q1 D0 T+ o
: X  {5 @& ]/ J  j

4 p. U/ a3 W$ N+ B( a8 ^" g  [6 {5 @" s: T: v

" d( J4 i! `2 ^  T& O
5 K& x6 U/ M9 o! i' w7 P) z
发表于 2015-11-17 02:25 | 显示全部楼层
关于域名定向转换,这是一篇好文章:
! P+ O6 E* Q2 D8 r$ w; {& y* N3 ^: e
http://blog.viewzhao.com/2014/06/page/2
& g! o7 r2 r& U1 j4 `- q4 _( y' P7 l0 ]as well:3 X) J# Q1 K/ G: \- g2 Z' M  T
6 f. ^8 P0 e4 R% d$ x) M) _# L
https://my.fastdomain.com/cgi/help/htaccess_redirect
  a( R( u9 d" I, o9 P5 f$ k' j9 U* j) k/ P6 w9 H! _6 w9 X
http://www.discuz.net/thread-2130491-1-1.html
3 S& |) O1 _0 Q- k% b# _- R: m
发表于 2015-11-17 02:26 | 显示全部楼层
加强版 google和百度sitemap for discuzX2.0-X3.2
6 D  K# N: e* \* C
& `( K2 o1 c  w, l; q3 |http://www.discuz.net/thread-2474942-1-1.html

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

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

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

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