开启左侧

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

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

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

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

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。
# z/ F% D+ [8 s4 y) w
+ F! I/ k4 A' P; ^/ g先是将代码测试贴在一个专题页底部:http://www.beimeilife.com/portal.php?mod=topic&topicid=354 |4 a: q6 b) V& W5 ]9 B2 n2 x/ Z: b: }
却不显示。
- M  a8 {! u- Y. ^% Q& A
5 u# t6 n; I" B. ^2 S+ B) a查询下,木有头绪, 所以自前天就给Google Adsense 查询:6 D+ k; U( U, Y" d$ ?
https://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense8 Y: s$ Z, d! {/ a5 M

! J: h8 a! Q! V" F0 S" Q/ m网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://www.beimeilife.com/beimeilife.com 打开就会出现
8 `  ~$ R; N+ ?6 U: v# K9 \
5 H/ [4 V9 Q& _! OThis webpage has a redirect loop
; z) e  `8 c$ N! }) w$ y3 i
% B' }8 A2 R  w  b' H4 i才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。  a$ [4 v$ x7 y0 M( ?% ^) K

8 V0 u$ z1 B2 p% Q% p; _熬了一天一夜都没有效果, 气馁,放弃!!5 h* u  j& }& W: u  n) N# z$ z
$ c" {" U7 c7 t: E. f0 K
4 F  Q1 A% O% k2 n. R9 g0 b
- H; Q. [) ~; h: \* E
5 J3 d* x# P8 J0 l
6 v7 G. Y3 T. r  N" E


转载请保留当前帖子的链接: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
+ t& w& h  ]3 p" N3 ]& U6 ~; x! [* W2 `# t
ads not showing on my website

8 _4 \7 Y  J$ y2 oCan anyone help me with this?) j; ], Y, u" N5 x/ Q  K
6 K6 M8 V& D. A3 t+ S4 s7 ~
I put it on the bottom of the webpage:( R) g2 L/ y5 @+ N3 O( u5 H% v, \
. }! Q" F3 v2 w) S) C
http://www.beimeilife.com/portal.php?mod=topic&topicid=32
; e# y/ b/ i- _
, m6 K. p* Y4 k4 @! e8 v) B
& [$ W" U, c# p# `) _3 JThis webpage has a redirect loop' b6 o9 {( n  G7 y' G6 J
[size=0.86em]ERR_TOO_MANY_REDIRECTS5 S2 W5 K6 ]* a; B0 G9 ^0 s
' d$ C& \2 E) x) x6 V- N

( @+ @' Z9 S" o+ o7 P6 PYour website URL is:
3 R# F4 f6 s4 S8 U
3 v* ?6 @7 D4 w/ ~2 Lhttps://beimeilife.com/portal.php not the URL you left.1 K9 C+ m" e  A$ F2 _  I; l7 A
( I6 V& v/ Y" U9 g4 r
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+ [  P8 q0 s4 G, S& g3 v% k
( o4 w, `3 ]( e0 N, x

4 j  l: F4 i# q/ E7 t, g6 t  s, u) \, S
Your website URL is:
+ M( W7 r: m3 L0 @8 J2 w5 O# X8 T0 R& ]/ v. D5 Z
https://beimeilife.com/portal.php not the URL you left.
) {6 M* T0 M8 W- [/ L! H
( M; P  [$ C7 Q) c; [0 o) g* Y# B& DPlus, 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
& \3 O. k8 y- U3 ?$ ]) f7 K, R' _3 z' w& m
: @( i+ ?0 D; Y" P

( G+ H* K: W6 G( j2 `Many Thanks for your prompt reply and help.
& b% e- h( X6 @: r0 Q8 s) |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 http://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.9 {, s# c2 f! O6 `# ^

* u% k+ d$ p7 p$ }( h7 B
3 G# l6 \( Y: ?Gracey said:  ( g  O/ w# I4 d' `* S8 W. P
No, that's not quite what I mean.
. |5 g* e4 h7 q4 P/ p! @When you apply for Adsense you have to supply the URL of your website, right?+ |* }6 x) P: c- I9 y( }9 c4 ^
: W3 j3 ^+ z1 D7 m- l7 p
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/,( ]7 U8 v, _: O% {/ @" v0 k% F
# M% O6 g( I9 |" @6 l  P( X3 U* S5 e
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?* h9 h# c7 i6 @: P& ?

$ J- p" m) o6 R* Y# I( I$ U8 v: IThe URL I see is https://beimeilife.com/portal.php  <--- and that not the URL you told AdSense was the URL for your website.
( m$ E* ~) L, |  U9 M% }- D  C# I8 \% v8 `. ^# T5 Z
Your website's URL has to be the page that loads. It can't be https://beimeilife.com/portal.php5 S+ x1 L+ |; x; ?

4 k2 [7 m9 _5 |8 Z) II'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.
( X8 l9 ]- D' U1 _; k- X% f+ e7 S
! r, D) F+ L9 T9 LYou 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.1 y$ c' V- U2 U7 K
0 b1 R" s' e" {
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 X8 B9 w( p  a! D  n$ f& A, C

8 {4 `& x# ?; T! `9 o: k( O# k/ O. Q- I! B6 \- \
I said:  - _7 K# F6 e6 v3 o$ X
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 http://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 http://www.beimeilife.com/ , does this means so no luck to achieve the codes displaying?
+ h' ~2 ?* m$ J$ w6 i( }% o$ r7 |; x7 _
This really drives me crazy now, need a rope on the neck. " G, C4 G6 h+ T0 N0 ]7 D, E8 h

0 p& h; C. g* O% V6 m2 xI said:  - K: a; @  k# N7 O6 U
let me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ
. Y' x" v3 \5 Y$ FI said:  " _- F$ m0 V. ^9 C
no problem, that means something wrong with my site settings.
% v4 D. Q& Q: H/ [9 h
/ Z0 Z# V! V9 H
0 s( Z- k  N# p- JGracey said:  
- a' Y) L. z* J+ T' [% U' _- b.htaccess is not how you fix that. You need to change the DNS settings.. S$ O- z+ q; z1 c( _' f

& y; G# ?' }0 V$ n. M8 Z! k- }1 z2 B2 ]1 v0 e4 x

0 }; b0 h$ y/ B+ z! O, Y( I+ _4 n+ C) Y4 y2 A& [

! ^% c8 u0 P3 V: H% [5 G* v) N: n
  M. y% l$ X7 H; r4 ?! `. V' o# [
% J% G  p: [, y! T2 ?1 k" I

5 A$ x) @7 L) g5 T' `2 V' \. q' s- S5 [6 j9 E$ r/ V: y1 V/ Y# @
& Z5 ^; S5 v% z: Y6 _' R8 c

" J8 W4 b$ @5 R1 o8 ~. R+ F' Y7 z' h

% \4 b2 J; Y1 n5 O
2 l( V6 Y" h! a! S1 x( X% v/ Z& L' H+ ^( c; T& m6 T0 \: h7 E
( [! X( Z# Z8 J, D

* ~' X8 @% x8 @$ e+ c4 W
% w8 t; s+ Q7 T5 P/ r8 Y  J. x
$ H6 A3 @) R' b- x! b9 S8 u3 `2 u$ {, @9 }+ c$ k9 N
4 n$ Z9 F( B0 Z! m+ l

: K$ q0 i" Z. b
2 ?% |- ^$ f7 _6 \8 G  S1 j
发表于 2015-11-17 02:25 | 显示全部楼层
关于域名定向转换,这是一篇好文章:7 T; O) ?4 c2 g7 X, @* R, L
9 \' R% y' h) a+ c) }; h$ b
http://blog.viewzhao.com/2014/06/page/2
$ F- j& p) A- @2 Z# L$ I, I6 @as well:+ W, [, U7 X9 \3 N/ s7 T9 a

  Q# _8 k; G* d2 O" `https://my.fastdomain.com/cgi/help/htaccess_redirect: u' e4 \# m: u1 _. W( }8 z- l* R+ t+ x
5 D8 ^# h  j, I) [8 f
http://www.discuz.net/thread-2130491-1-1.html
& K7 s# S- M% J* O- H  w
发表于 2015-11-17 02:26 | 显示全部楼层
加强版 google和百度sitemap for discuzX2.0-X3.2
4 i6 ~# A6 r- A  D0 g" r& n& }' ~# i( V( C4 w
http://www.discuz.net/thread-2474942-1-1.html

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

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

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

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