
����MIP,�����ύ
��������ƶ��������ķ��ٷ�չ��PC������Ѿ�����С���ܶ�ͻ��������ƶ�SEO������������С������Ϊ��ҷ���һ������SEO��MIP�ύ������ϣ��������������վ���ǡ�
��������SEO�ľ�֪���������������治��ٶ���������ֱ���ύ��ַurl������������Ҫ��վ��ƽ̨ȥ�ύsitemap��ͼ���������ύ�ֱ��У�sitemap�ύ��mip�ύ���б�ҳ�ύ�������ύ�������ύ�Ȳ��ùܣ�sitemap��MIP�ǿ���ֱ���ύ�ģ����б�ҳ�ύ��Ҫ���������ﵽ3���Ժ�ſ��ԡ�
sitemap�ύ
sitemap�ύ�ܼ���д��վsitemap·��Ȼ���ύ���ɡ����ǽ�����Ҫ���ص�˵˵mip�ύ��
MIP[�ύ
���ǻ�����php�ύΪ�������ܡ�
1��������Ҫһ��PHP�����л���
2����php�������½�һ��������Ϊ���Ƶ��ļ���
3���ļ�����������ļ���һ��sitemap.txt��һ��smmip.php
4����sitemap.txt�з�����Ҫ�ύ��ҳ��url��һ�������һ��������������վ������url�Ž�ȥ
5��smmip.php����������Ĵ��룬���������Ҫ�ĵľ���api�IJ������������������վ��ƽ̨���У����ֱ�Ӹ��Ƽ��ɡ�
<?php $urls = array(); $sitemap=fopen('sitemap.txt','r'); while(!feof($sitemap)){ $site=''; $site=fgets($sitemap); $urls[]=$site; } $api = 'http://data.zhanzhang.sm.cn/push?site=yuming.com&user_name=zhanghao&resource_name=mip_add&token=Authkey'; $ch = curl_init(); $options = array( CURLOPT_URL => $api, CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => implode("\n", $urls), CURLOPT_HTTPHEADER => array('Content-Type: text/plain'), ); curl_setopt_array($ch, $options); $result = curl_exec($ch); echo $result; ?>
�����ļ�����PHP�����·���smmip.php�������mip�ύ�������������200˵���ύ�ɹ��ˡ�
mip�ύ������ĺ���
200���ύ�ɹ���
201��token�����⣬���token�Dz��Ǹ��ƴ���
202�������ύ�������Ѵﵽ�������ٴ��ύ
400���ύ��api�������������⣬վ���Լ졣
500���������ڲ������˴�����Ҫ��黷���Ƿ��쳣��
�����������ύ����С����˵����������������ӭһ���Ⱥ��750404014�����ۣ��������������ʦ��~
- ��
- �û���������
- ȫ��
- ȫ�������Ż�
- ����
- ������Чת��

�ؼ�������
- ����
- �ͻ�����ѯ��
- ����
- ������������
- ��
- ��Ч���շ�

��վ�Ż�
- �ʶ�
- �ؼ���������
- ����
- ��ҳ������
- ת��
- ���ͻ�ת��

SEO����
- רҵ
- רҵSEO�Ŷ�
- ȫ��
- �ٶȡ��ѹ����ȸ�
- ����
- ����SEOִ��