开启左侧

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

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

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

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

x
最近两天, 本顺手测试下Google Adsense 广告功能, 嗨!!却发现大问题了。  A1 V8 k8 g, J
+ b$ G1 u! W% S$ R, i3 v
先是将代码测试贴在一个专题页底部:https://www.beimeilife.com/portal.php?mod=topic&topicid=350 T6 ]2 c# e6 T
却不显示。/ x, e  C% n& n) G' c

0 j7 p  y+ l9 e, ^查询下,木有头绪, 所以自前天就给Google Adsense 查询:- J- @/ D) g0 u& t. B, \* A
https://productforums.google.com/forum/#!topic/adsense/dfPbvCNKM0U;context-place=forum/adsense
: S" s6 v: @. H: t# _% a2 L% y% |: [! k. F' F* X4 J1 C
网站从浏览器查看都没有问题, 就是在Chrome上从上面连接的页面中所含的http://www.beimeilife.com/beimeilife.com 打开就会出现
6 @! F8 q' s3 e4 F/ q9 Y6 w+ T4 u8 ?" Z0 P
This webpage has a redirect loop
- t& |% Y, Q3 }4 `5 e* v. `- y8 C* e! }8 T6 Q+ v9 ]$ m
才知道网站的服务器端设置有问题。一直调整,从.htaccess 到redirect loop 解决方法,以及调整DNS 设置。* b/ O' Y3 \7 C- ]7 S
- I$ T( H2 `. {/ e0 h
熬了一天一夜都没有效果, 气馁,放弃!!
4 T4 [- o) \1 P7 ^2 Y/ p7 {) c4 G* w7 Z4 ~

* [5 v" L0 a. M: Q2 y* j' G+ A& G1 v) E/ T8 z
1 p+ B: v" R9 u- u( m
1 V( Z4 h- ~" W; b


转载请保留当前帖子的链接: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: j! d. E7 w6 \/ ^$ N2 M
7 ]4 z. Z* g: [$ s, F
ads not showing on my website

7 p4 b7 v( h- O5 b# M: V( s: ^Can anyone help me with this?
/ d1 j' L& t; W( r# T0 n8 C* l" A/ D6 U
I put it on the bottom of the webpage:! x6 r+ {: X. }" [6 h

$ w" N7 U7 h' E; F, F+ S; m8 Q/ Rhttps://www.beimeilife.com/portal.php?mod=topic&topicid=32) w4 G( q$ M% i' G

) K1 \2 t' w' n+ U
3 o* E9 c1 X& H7 MThis webpage has a redirect loop9 R" K. m, f5 P; k! U
[size=0.86em]ERR_TOO_MANY_REDIRECTS
: J+ t9 L6 ^: k) Z, w
* ^+ z! [5 h  D7 X" [. ?! P/ ~/ L
- h3 ~' ?& W1 y: e4 M% p% PYour website URL is:3 n: b  B6 e0 I. R4 B' _
3 W0 }7 t9 P! l/ T: l" |
https://beimeilife.com/portal.php not the URL you left.
( ~$ c. k0 S+ [0 H4 B* s
' g' w5 a7 d, Z3 G# q6 [7 \1 aPlus, 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
7 a& f) @+ o. E/ k
5 n( G1 p, ^4 V! P) s$ C2 x) }4 a3 g3 x+ O

4 J0 n/ S: ?& y7 r% Z9 fYour website URL is:  z; G6 f- Y1 @+ d; D) D

5 t8 i: M! A3 d" G: }https://beimeilife.com/portal.php not the URL you left.
& m+ l8 @9 {8 e
' Q* d5 L9 u0 ]" A% e# F) kPlus, 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
2 f" {7 j) ^0 P2 `3 R! V! f! h2 W. J9 O- g& d

, ]- x' U) W# y( l  X" a* J, p
, L% C( |, C7 N# g; RMany Thanks for your prompt reply and help.8 |, T: v" U+ |
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 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 V3 q; N' h  I) h& d0 w( E; {
& ~6 D9 K6 o& A. H4 A1 k

& X: e% z  q- ~Gracey said:  
% E; z" b8 K# t# j5 P* e8 F" ENo, that's not quite what I mean., ~% B' V" B: v/ h5 Y5 d! T, s& W
When you apply for Adsense you have to supply the URL of your website, right?
( M$ K3 o- y, V% I3 E* G; g' i& ^# x  n8 T
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/,2 ^8 G" o: g, }- T, U& j9 i
( r( C; \4 n" G* g* X/ U
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?: X9 j9 _5 D0 q4 d! m
  g% B9 G8 W0 Y* U+ g7 m
The URL I see is https://beimeilife.com/portal.php  <--- and that not the URL you told AdSense was the URL for your website.9 H7 t" y/ r- h# {& f3 }/ j0 j
8 m+ X1 H& H3 ^/ [4 h4 \. {
Your website's URL has to be the page that loads. It can't be https://beimeilife.com/portal.php
8 R* H) m7 M# I3 f/ H8 N7 g
: U- F3 f6 q8 p5 UI'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.5 Y# \% `, \. L& C0 o  S) ~
3 r, @7 B$ j: L9 {
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.
5 V2 ~, I: o- ?. a2 j6 A
$ l4 p6 {" z3 [: D# IWhen 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.
8 M2 o$ L6 n# U6 m: M# p( u- s- p- j$ g9 c! }

' P2 \; ]6 {; X" b9 U* w8 h4 aI said:  
2 [" O  W6 T% n4 DI 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?
1 s9 m( a+ i! ~: L" D
; C9 X& |+ x/ W5 ]This really drives me crazy now, need a rope on the neck.
8 e9 U" p% r( r$ j6 O% }4 d' F7 V; x2 h/ T) T! N
I said:  
! D3 C- K7 e- `- Y" y6 m8 K3 b) {let me try another site: http://www.google.com/url?q=http%3A%2F%2Fbackchina.com&sa=D&sntz=1&usg=AFQjCNHK0E04tph7fsKXs2MU0vT6r-m7TQ5 O% n% E: E; d" W6 @) u; P
I said:  
9 y; _2 n/ r2 Y/ I1 P2 r- Sno problem, that means something wrong with my site settings.
& H$ J- R2 q: q. G' e7 C7 B6 V
+ \# B7 r) w& F! z8 |/ a' A4 x1 M, J7 C, v
Gracey said:  
9 ]- ~) v4 T1 N4 V9 z: d.htaccess is not how you fix that. You need to change the DNS settings.5 N. B; N& i  B  V- {! c: p7 t( F. W
6 e' R: C. H  k2 Y

; c9 J. _6 d2 P" k6 ^5 F* e* h" a7 v1 t/ I. l& A9 X5 T+ r' H

& T1 n; B" p& O8 U$ l: E$ k- q8 L
; F+ R& i& w* s& _8 b, e
, u$ \* ^& J' K0 _
$ ~' o: x+ i+ D" H3 U
9 c' A. Z6 {8 F# Y
$ c6 }: ]8 a* A' h- B' p9 Q7 d! l+ Y/ M4 U" _$ f7 J0 V* K6 t
) P! A; l# i  D
0 C7 u+ b* x$ ?
! j8 v, |. Z+ M  l% @
- u5 k; }2 a7 s* U4 _+ g+ ~

( _9 W6 b8 g/ U
  V9 r- \. I; q2 T% [, [
  _( q' `) f6 {4 p/ H
/ K1 H8 V9 n- u; y3 j: m/ G8 s1 M* H% W; ~7 O
+ d; {, R" u5 Q0 _( G5 s! N
+ @8 q  Q) h- \( A4 U, O
- Q; @* r/ g9 ^1 i9 m/ C

6 |1 u+ w; ]3 u3 F% l7 {$ y" Z0 L- Z% Z
发表于 2015-11-17 02:25 | 显示全部楼层
关于域名定向转换,这是一篇好文章:
8 m# E; Z( F+ m( t" B- L2 e
- A: `0 ]& z% Y9 g5 L8 yhttp://blog.viewzhao.com/2014/06/page/2
  ~( ]1 M' W& d& _2 N  ras well:
/ h1 l0 H/ j% Y; Z+ {2 T( o) C6 h7 Z; V+ Q
https://my.fastdomain.com/cgi/help/htaccess_redirect
5 W1 H* D5 D1 ^
- r0 z8 E9 S9 b& c$ ~6 L1 z- Khttp://www.discuz.net/thread-2130491-1-1.html, f0 c: j# N% H+ _7 f, ^) Z
发表于 2015-11-17 02:26 | 显示全部楼层
加强版 google和百度sitemap for discuzX2.0-X3.23 A, k, x! A7 N' b& k

# ~; y, l1 Y7 ?- E2 f# Whttp://www.discuz.net/thread-2474942-1-1.html

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

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

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

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