开启左侧

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

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

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

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

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。
6 P( W0 I' l( i' b
0 m0 Y6 M. r1 ^; Y* [先是将代码测试贴在一个专题页底部:https://www.beimeilife.com/portal.php?mod=topic&topicid=35
" f3 Y% n, t$ U: L2 A* S却不显示。3 _$ w# s4 [- \0 V9 t# e# F
7 H* v! P' n5 t5 w& b; Y+ Q) b
查询下,木有头绪, 所以自前天就给Google Adsense 查询:
8 Q" A5 K9 P! m- ?6 ~5 Ehttps://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense0 o* G: C; ~- ^; k* l. l1 i
. P* t5 q( g( j, j$ |9 ~. X% D
网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://beimeilife.duckdns.org/beimeilife.com 打开就会出现
+ L/ v* q( w& u+ K) b( l+ D
3 M8 g  {- D0 S/ EThis webpage has a redirect loop
! J$ f  l0 x+ J. D  K3 A
+ l3 ?$ K* Y3 n& l0 f才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。* Y6 t+ K$ G0 N9 }1 w

; ~6 _. j  A  Z( G7 [* ?熬了一天一夜都没有效果, 气馁,放弃!!
( ?! Z8 C$ U) K+ m+ a/ r
4 a5 y$ Q7 z& @
! H5 Q5 ]8 \) h
) i2 `4 N. t: H- f+ g( N
3 n' ^# u7 h7 b# I7 p/ s9 t1 q  c6 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
8 v, K& W6 i) G6 ]' U* y/ M; _
) x2 Q& R# C7 w; e0 Mads not showing on my website
5 C  l& E) T5 g, x  p" g
Can anyone help me with this?
! p+ ^- k6 c( V* q) A# Y( u' T0 J: ?
I put it on the bottom of the webpage:
9 X& S! T! F7 Y2 D3 a" [; x4 _, o9 u1 z' F" |7 e
https://www.beimeilife.com/portal.php?mod=topic&topicid=32
7 t7 [' w1 i2 c1 N4 k- |* D
, h6 y4 s) v" Z: p& o
( O+ }3 W9 S0 B& ]) p% cThis webpage has a redirect loop: M* k' v9 ~2 o' C5 G9 J
[size=0.86em]ERR_TOO_MANY_REDIRECTS
4 T) t- u  Z. c9 C- Q& D9 j$ s3 ]1 e5 d9 X% h6 m: v5 a

! J% j' M5 E* dYour website URL is:; B4 e. v+ B( v) O

/ K6 U9 Q" g/ Q* O; {https://beimeilife.com/portal.php not the URL you left.
6 k' v" o0 b2 T# @4 k2 G
! }" d1 ^$ H6 ~- N4 SPlus, 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; f' i+ s2 n* x7 l

0 h- Y, I( G' C1 Y3 {4 C' h4 C1 v. Q/ X- z1 }: W: t. {

/ v9 Y9 f6 V, dYour website URL is:
! k# n7 d3 U# f8 w
, U% i% s2 m0 ehttps://beimeilife.com/portal.php not the URL you left.
' d; \/ a1 p1 c5 v3 A3 P( x3 q) _& \; A
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
4 \* `  Z& r8 I( v  W  \1 e/ P4 G7 D3 J  i1 N. j& m( {
. l6 F; r5 `+ _+ d# C

8 o+ A; V) B' xMany Thanks for your prompt reply and help.
) U: j  @' s" Lyou 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.) `! c; L- P% \8 w" w) D" S
! H: ~$ N6 W$ R" Y$ }* g  G

( `& o; ^: H! p6 c6 n6 f$ x% jGracey said:  
( ]6 o- g8 a4 o' ?No, that's not quite what I mean.' w' [; X3 A9 D* v6 }6 x3 v: G2 v: c
When you apply for Adsense you have to supply the URL of your website, right?
0 B& p: g; ?/ |: {1 ^  S. m% u5 s  o; V$ W/ K8 X1 i
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 S7 h, e- f+ q+ t! j+ ^! N0 [/ `+ p* y, t! U3 {
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?1 Q. r9 E' E/ v6 I0 D$ ^, w

) t: v7 t4 h1 g* _: }- pThe URL I see is https://beimeilife.com/portal.php  <--- and that not the URL you told AdSense was the URL for your website.; b6 _# F0 C  d" W4 e6 }
5 V6 h, A. L% Y- n: Z
Your website's URL has to be the page that loads. It can't be https://beimeilife.com/portal.php
- H0 Z/ c% p+ t0 G6 ~0 ?
( `2 t- K& w+ Q. K/ y" VI'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.
* L3 S" \- |& J  }( W1 t7 k3 a! l/ n6 {5 K6 ~
You 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." t* z  f; z) G! S3 N5 K

* |* z' R6 I* S. `& {3 E7 n  _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.' O# t) o, p9 W8 \3 P2 T  ~) V
  S! y0 e0 ^) a" L, h
0 q/ j" Q! X" j6 f+ D% k" F8 i0 D
I said:  ) v" z: S; j; m3 S- ~* d: R# ^! l
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?& A$ H% ^+ u5 U3 a  \+ L0 V

' y" G/ a, R0 R8 F9 }This really drives me crazy now, need a rope on the neck. ( s0 U2 U! R6 [
2 V; O, O! v% Q0 [8 n
I said:  ) C' m+ s  B( w5 g& s
let me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ+ l9 x- e2 `2 j3 d( ~1 M2 k1 J
I said:  - B3 E  I. l! n7 k
no problem, that means something wrong with my site settings.
: Z' x3 Z( v5 _+ e
3 f& b; x, x4 I% e3 k
  b8 r' r( J. P. V9 |! }Gracey said:  
9 f( V0 C/ ~" e5 t( H9 o.htaccess is not how you fix that. You need to change the DNS settings.
  [. U6 k9 Q% }+ C- W
) f5 M2 J3 W* N/ X0 N
4 g+ `. \, e6 b5 D) a- F4 }! ~
3 t5 N+ Z$ F0 Z; h8 B+ d# {) ?$ g" t

! k# j4 J3 D2 j, @9 D% u1 h# [6 a! |. _8 w
$ g$ {& ~5 j$ S+ M1 _- C

1 Y$ }* L5 }2 @  n
$ v' B/ j+ X/ l) u6 d9 H; w1 E
( {& B! P) W$ L6 p3 B- a) B& f4 O" g* c# u. X& h/ p$ }; M' _
" P" V3 t. W" C7 B
5 a# q: F. Z2 Z: G1 r
* X$ E! B" ^4 R& ^% G, @! }1 g

  a. N% u+ T( `& ^
- C* i' C. D$ M+ A& L2 I" ?3 A) Z' Q! A

) h+ n0 E+ q- W+ C' V) j! ~% D" H  c% _" @# P  {/ j

5 L7 k3 h* F- P% D8 j7 v
* l# ]& h3 Y5 Z5 K! {( O" t. Y3 g; P- g; s' l3 a) i

- V4 f* Q) {9 a4 o
8 M* n* w# L% w$ m6 D7 n! G+ |
板凳
发表于 2015-11-17 02:25 | 只看该作者
关于域名定向转换,这是一篇好文章:
6 K8 K2 Y% H2 I5 R1 Q
" ?& [! a) R, C+ _3 Qhttp://blog.viewzhao.com/2014/06/page/2, C7 o* `$ a/ r$ X# h9 M
as well:
# V# O/ H. ~7 ^: E& J: r" `  Z" T+ b" [$ E' K7 ^/ q& y* p
https://my.fastdomain.com/cgi/help/htaccess_redirect
+ X& s8 `* a3 }2 j6 X" v: I/ a  A% x3 S  v" h6 k/ |' v  u
http://www.discuz.net/thread-2130491-1-1.html
2 q2 w2 p5 G: X4 T4 `/ Z
地板
发表于 2015-11-17 02:26 | 只看该作者
加强版 google和百度sitemap for discuzX2.0-X3.2
  p) v) @: O6 Z' C9 O0 n
) j$ c2 f7 E: r1 h: P) Y/ g1 }http://www.discuz.net/thread-2474942-1-1.html

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

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

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

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