开启左侧

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

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

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

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

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。
( m- c, p% d* R7 ~7 O  r- J3 ~" {) C: b- f* _
先是将代码测试贴在一个专题页底部:https://www.beimeilife.com/portal.php?mod=topic&topicid=35
/ O9 N5 `% ^6 u- N1 e/ a却不显示。/ `; p$ N9 y" M8 E: X, U  m

) O" m) V# m: C' Z查询下,木有头绪, 所以自前天就给Google Adsense 查询:
- g0 x7 W; W5 l2 M% F6 nhttps://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense
. u- p! w! g( r9 G* z( d6 m" M+ E/ G9 B9 _. y$ Y' S$ D" y
网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://www.beimeilife.com/beimeilife.com 打开就会出现) a6 D( ]. b4 M- w9 a
1 ~* [7 Z6 ?* P7 J% G/ v
This webpage has a redirect loop/ E, m! z/ I. B: R; J, }" u/ n

  F9 \& }1 ^: p* k才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。$ i" q/ I0 T( d8 _7 }. \
% q+ n7 S& @5 `7 k9 s+ H" y+ Q1 F- P& }
熬了一天一夜都没有效果, 气馁,放弃!!
4 _7 `2 N: E2 X3 G7 v/ _$ k! e( U5 e* k1 F. }  B+ `. _
9 `9 q+ ^- T9 s! A7 y6 H
( I! t4 n1 L: Z/ U7 `0 H

( K5 Q* t4 G) w/ H: K
" k. g7 @1 n) @* m8 W* n, r

转载请保留当前帖子的链接: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/adsense6 O" }2 ?+ P' H1 S/ t# Q

& N" C' Q! g" ^# c' ?8 p2 u0 U8 Pads not showing on my website

9 _$ h0 q7 A6 p, \Can anyone help me with this?
; C8 }" D; y  `' \1 ?4 [# y& b
" d! M) q' D, S I put it on the bottom of the webpage:  `- [/ V* a  ~  @4 z/ N9 i2 ?
- s' }) T. r8 G* Q$ p) s- x
https://www.beimeilife.com/portal.php?mod=topic&topicid=32
& D& c! V* L6 n% t1 \3 P( A- g+ e) F
$ h# w* Z. g. B) C* B
This webpage has a redirect loop, x& _$ i- B$ N* Q4 l
[size=0.86em]ERR_TOO_MANY_REDIRECTS& ~9 A* S$ @# ~$ |# z6 {

0 k- s/ _# P# _+ ~0 S' b2 Z* x
9 z: P, [3 Y+ A- _- ZYour website URL is:
! T( S; c4 S. Q, w& n& T, y/ z
" g3 f2 h$ R4 A2 Y- o+ j; rhttps://beimeilife.com/portal.php not the URL you left.
- M8 i% A' k  t& p* [* c# ]8 D/ Z6 p2 _- j0 P# s, P
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
$ @% I- Z, x6 w7 M3 c$ K: J, M" U& h

2 L3 E* z# h, c6 X4 l( P
  v- N8 i* d2 u% U! {: Y! p' gYour website URL is:
- i; S& {/ I; E- G% ^+ W& b- d
& `+ K- t# y7 T' Z2 N# i2 dhttps://beimeilife.com/portal.php not the URL you left.% |7 ?6 i7 L5 N5 a
5 v  x" a6 s% A* K9 ]
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.php9 X$ m7 w/ s. B$ {) t/ i% L9 D7 x
$ p) j+ _' Q1 r+ Q; b; p( _
7 N0 i# i7 B8 V% p3 ^
; G, \# }* m+ a1 E, }
Many Thanks for your prompt reply and help.
" C9 D' s: t5 D+ A" Byou 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.
& F: A, u$ B1 ]! [0 ]7 ^/ o/ G4 f+ ^9 K3 W" j: ?7 C, f
6 M/ a9 p0 w2 r- Z
Gracey said:  0 ?+ [+ s# E7 Q( q1 Y
No, that's not quite what I mean.( m# O6 S% q! h$ U5 o
When you apply for Adsense you have to supply the URL of your website, right?" ?9 O6 ]2 E% A5 q0 P1 Z
" B/ `8 T( M5 R! V/ X+ C! L
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/,: X, j; @6 ~" h
; d, T$ P/ _  F+ e; x
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?
# h' u! a; z; ^2 a5 A* m2 _/ q
# w  \7 D2 G, Z. D/ F! ~; _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/ H8 e* n" j( J3 ^2 y$ ~0 I1 F; n; s2 u% S1 {
Your website's URL has to be the page that loads. It can't be https://beimeilife.com/portal.php; a: P4 C6 n; n4 p9 s5 O
' [  |& _* `+ c6 h9 w* |
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.* c# u4 s; D' M4 p  @! k

6 Y: I; g  \3 d4 c! aYou 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.
: W' x# f0 u* Y( a4 }1 E: C5 Z' W& p% n' D/ ~% p
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.2 ]: r+ ?  Q7 i& C+ A+ ~4 D7 [
7 t, g: a; U5 J
  W9 D- c% B4 S' J
I said:  
$ {3 \5 _- }7 x1 b- v: mI 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?
" ~) X& Z  l( ~& ]5 \" e4 n" j/ G  b) j/ J1 W2 s6 g, r$ \" t
This really drives me crazy now, need a rope on the neck.
+ P) G1 e) ?+ r& Y# H! N
, T, V. o& ]( V" P0 {8 DI said:  
" q2 W- K1 Y6 C8 z3 @: b" W3 olet me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ+ \8 T0 K. R( G' E& M0 k
I said:  0 _+ `3 J  x) o4 ?8 ~5 r5 b
no problem, that means something wrong with my site settings.+ V' a& G# U1 v

- V) y* J1 I& W  J; E" u+ f2 u/ [6 S# e- A: w
Gracey said:  ) G& L1 L# n$ C' O
.htaccess is not how you fix that. You need to change the DNS settings.
8 h6 ^" t) w8 Z' ~1 {) D5 P% x3 P& P+ H5 v8 O7 h8 J: B
2 o2 G( }# g. d
$ G* j& L+ O8 f4 n+ G4 H% G

, u$ v$ _9 N# E( D4 M( {8 ^
" d4 f! `5 Y. j! F4 B6 c+ D- g1 z3 T5 H) d$ e! U" Z
1 G  V* {5 h. u
9 F& y/ N# A4 Y( |

7 a4 X% |6 {4 b! Z( F3 @% E/ w! w& P0 v( T" y: L

: J9 [- x% c6 r- l& b  M: l+ w! m$ b' Z$ h

$ ]5 ^: ~" U2 o- Q2 Y8 ]: t6 d
% p! H. @2 V: U* J% [( b5 o/ w& `9 e7 j3 w( w! H$ z2 v' V, ~( Y5 E
) {- r* T. F5 f/ _7 s4 I
# T1 B* b# j/ \! e& L( m. I
/ y8 k. N; K1 l

8 e  L6 y! S3 ~' B
; p9 r' u7 r2 e0 ^( X
. V5 v1 c8 C% w1 [* u  A
+ ?! f% |$ \2 l9 P0 h  R4 C! l  P) v- L! i: ?8 f( ^% r

6 ?% S' [+ y: ?2 B' `
发表于 2015-11-17 02:25 | 显示全部楼层
关于域名定向转换,这是一篇好文章:
, b+ b4 H8 @$ f) n2 \/ |; X7 L" N$ N5 z6 `" c2 O+ S  y& m6 Y2 a1 V% S
http://blog.viewzhao.com/2014/06/page/25 O  G! k; M% s! m
as well:
! W0 Y+ j' G) p& [; E7 t
/ n3 u0 n, ~: {5 D$ l: F$ U6 @: ~/ Ghttps://my.fastdomain.com/cgi/help/htaccess_redirect
4 E3 g: C6 l- d4 `: m" h, H: r# C8 i$ u+ m6 Q
http://www.discuz.net/thread-2130491-1-1.html
) @8 p8 u+ ~: w. ]6 f: f) h
发表于 2015-11-17 02:26 | 显示全部楼层
加强版 google和百度sitemap for discuzX2.0-X3.2
8 Z! U! A  D4 [4 R
9 d3 f- U/ ~6 E( G4 Vhttp://www.discuz.net/thread-2474942-1-1.html

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

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

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

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