开启左侧

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

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

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

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

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。* g( P4 S* j/ _; d0 ]
0 s8 o4 o% E: Z$ f4 E7 `, [0 f
先是将代码测试贴在一个专题页底部:https://www.beimeilife.com/portal.php?mod=topic&topicid=35
1 ]* O) Q9 I3 b( z2 i* }' b却不显示。
  p7 W( y6 H5 V, D3 v
2 Q' g# a+ u% i* n查询下,木有头绪, 所以自前天就给Google Adsense 查询:
/ x1 M$ E+ N% N2 p" c( F1 Shttps://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense( B! c# n4 T! b; i

2 J" g$ n1 E9 n& L, B: y网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://beimeilife.duckdns.org/beimeilife.com 打开就会出现
0 X" J9 A- x3 P4 P# J2 j! H6 `* o
( f/ p& `# @8 y5 i2 [& `This webpage has a redirect loop" x7 k; L: R% X3 _$ \' }
  M* l- {( ~# K. f4 ^; I$ T
才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。  B" ]: S# ~: x' {7 X. W
- A, p7 [9 X2 J
熬了一天一夜都没有效果, 气馁,放弃!!: Q3 O. L$ h, D2 Z% |& W
" [. s4 q0 t1 i- n! T0 B) c
; Q& W" Z+ U* L  K# ]
+ [" H$ z8 b4 p
4 Z9 z, N7 N! I" A4 r6 {) M* y/ b
6 [: h1 v# B- Y. J


转载请保留当前帖子的链接:https://www.beimeilife.com/thread-2724-1-1.html 谢谢
地板
发表于 2015-11-17 02:26 | 只看该作者
加强版 google和百度sitemap for discuzX2.0-X3.2, k% r  z) {$ |

, v/ A* j( E0 i3 ?3 jhttp://www.discuz.net/thread-2474942-1-1.html
板凳
发表于 2015-11-17 02:25 | 只看该作者
关于域名定向转换,这是一篇好文章:- k( o7 k/ Y# ]9 J, b2 O

* E3 u( [( U( g* F, Vhttp://blog.viewzhao.com/2014/06/page/2
, @1 m  s* n: L  \, uas well:
4 {$ U+ C8 E+ Z
. M7 h8 u; [5 v8 c; yhttps://my.fastdomain.com/cgi/help/htaccess_redirect- f) [3 f  s( {% m. C
4 _5 J0 m' @1 @
http://www.discuz.net/thread-2130491-1-1.html! P! e' C. P" i
沙发
发表于 2015-11-13 23:26 | 只看该作者
https://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense& B- T  Q! G+ m
& l( `7 B# |' u5 A" z* Y9 h. m
ads not showing on my website
' x# ^% J" ^  r% N5 |/ \; X9 D
Can anyone help me with this?( _, B3 e$ v6 T2 S& X
; f. L2 |' S. m. q
I put it on the bottom of the webpage:) V' A9 @; U! I* r. v" f* s# G2 H

0 T! V6 Q" h+ Q' B* _3 u) X. Vhttps://www.beimeilife.com/portal.php?mod=topic&topicid=32( _/ X/ N% x' z& i0 H
, i' ~* r1 W# K: G7 u# U& m1 @. }
" E  V# M5 ~, g
This webpage has a redirect loop
" W% y  `' t1 [( d  N+ V[size=0.86em]ERR_TOO_MANY_REDIRECTS/ z( Q& G2 S* R+ ~, [
) W( o# H( d; _& d) K$ R4 q$ E* s8 D

) m& }4 o* m( ^: Y0 mYour website URL is:
9 V4 _: r) G) K/ u& I% [& w. ]8 c& g8 g! Q9 V9 Q
https://beimeilife.com/portal.php not the URL you left.  p7 P4 E% {; g

, V+ e* S8 |. `6 Q+ U# Z( fPlus, 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
* f0 d/ x7 z  m
# ^/ |4 x- d2 V/ w- n5 L$ _
/ b& }0 Z/ U. F: S) Y; L
+ p- C# O9 u6 Z$ l* K1 M, u5 w, G  RYour website URL is:
- o  ~3 R8 D( ~- \8 z* ~# u! M' L4 i9 Y1 t' h
https://beimeilife.com/portal.php not the URL you left.
6 |3 p8 W. n) d) K7 _. t% `  v5 D" `9 p2 ?3 k" 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.php6 O- `+ \6 q" \' J

: Z% g* M0 S" X8 p+ u& j  Q
4 E9 h3 J" t7 v5 g- \' t$ H  |3 i# l
6 k% \  _' l" f( g1 P- SMany Thanks for your prompt reply and help.
, c- L! d7 h/ P+ k7 w& a% ^) T' zyou 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.3 N/ K% b& C/ E3 T, j. o
4 e1 i! U5 L. G- f7 E' z& Q4 Z

, [8 R* ~1 o4 t7 iGracey said:  
# k: v" R- d. G1 L* n' ~0 aNo, that's not quite what I mean.- O* u+ q# I* r
When you apply for Adsense you have to supply the URL of your website, right?
- P2 J, d0 c) ~9 @; I% N/ B2 l9 v% M" \5 U! I, F. a
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/,
5 C4 j: Y/ h; w" y1 X2 Q$ c% k9 C0 Z8 F( J$ Z) M# E. f! [% t
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?& C6 ~* T. D7 m3 z( o" x% a$ D& R

  E# N/ }8 [0 {+ I9 @! a" RThe URL I see is https://beimeilife.com/portal.php  <--- and that not the URL you told AdSense was the URL for your website., W" ?0 m! \4 ^9 A1 L
8 f0 [; p; |" G$ |  ~4 }
Your website's URL has to be the page that loads. It can't be https://beimeilife.com/portal.php
" n" I+ q9 @! k2 X9 b$ n
+ R9 f: R  m( {  f+ `* m$ o; 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./ j8 K  M' l; b8 ]* X
$ O7 a% r% A. y- H3 \' Y8 e3 B
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.7 \2 ~  y. h+ C4 P. B* p5 p
3 N% F+ M1 W: D# F9 d3 x
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.
5 u9 I7 e- z# @9 p# Q" L, L) L' W

% k0 Q3 z, l7 `7 n8 v! ], dI said:  
) F: ^" x5 r! h2 |" SI 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?
8 q- [- c0 h* t# l, k6 y; ?; j# W# j4 W% x# j% L
This really drives me crazy now, need a rope on the neck.
2 X4 {; x& ?1 p6 h' ]8 z
0 x) t1 U0 {" e$ z8 Q2 Q" M  }  KI said:  8 h3 h% y( _6 b, @- f7 ~8 L
let me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ+ l# E  s1 W1 V9 o  c% Z; q
I said:  5 H6 K8 _" I. T8 _: p" {$ V' j
no problem, that means something wrong with my site settings.
. |8 P% {. x1 i& ~, O9 L& p6 f2 I4 |# v" e3 N$ Q/ e+ _$ d
$ z0 m& E* e' J- l2 `
Gracey said:  
' `5 y8 G4 U6 D- `.htaccess is not how you fix that. You need to change the DNS settings.
$ D: A" c4 z2 W( ?  z1 B5 a+ n. o/ t, o5 k
4 e, Y! W( f$ i! t! o/ K$ T* _' ]

0 y4 T2 d' S: q$ O( l  |( d$ E8 r- m9 r% l7 x" `( _
. n3 K. G# ?( X- _3 ^$ j; E

0 D) w; E+ ^+ m4 r6 A: l, `& y- h/ h; y6 @
1 t  q  v" V3 D1 K1 C. Z( T( H

  F# {4 C& }$ @# b- u7 x. z/ G- l1 J: k7 \. q3 B+ D

" y% @; H3 T) x8 `) F$ ?0 j  d, N3 T9 L

3 K& Z7 P7 }/ q( [1 l0 H+ P: u! t2 I, U2 i+ |0 |7 O
3 Y& b. k+ Y: |  r0 ?
* G* n& J1 s- B/ [+ n. c% T9 `

# k. `  q, O/ J7 R9 I  c
+ i$ G* o; L( i5 {& e9 {, u) N- w" o3 [" l* S% [1 B- o* u4 F
' n( v2 P5 ]* U# t$ |4 H. y4 Q6 v
8 u8 o7 x7 N9 Q' V# R- F
1 @# H( p- t% i8 z, v4 Y
. w3 H  e9 Q9 ]& S

; t3 M' |% F" H( k

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

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

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

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