web crawler - Url rewrite and Google crawling ajax content -
i have quick question web professionals. supposing url-rewrite www.example.com/member.php?id=1 www.example.com/member/member-name-1 , on member.php have:
member.php
<html> <head> <script type="text/javascript"> function updatemember() { var member_id = '<?php echo $_get['id']?>'; $.ajax({ type: "post", url: 'update_member.php', data: {'member_id': member_id}, success: function(response) { var d = jquery.parsejson(response); $('#member-details').empty(); $('#member-details').append(d.data); } }); } </head> <body> <div id="#member-details"></div> </body> </html>
update_member.php
<?php $respose = ""; if($_post['id']==1) $respose = "content test"; echo json_encode(array('data'=>$respose)); ?>
will google index "content test"? (i believe not) how can make so? (i reading google's ajax crawling starter guide, i'm not sure how applies case: should change url www.example.com/member/member-name-1 www.example.com/member/member-name-1#!id=1 ?? work?). thanks!!!
Comments
Post a Comment