Anjmao Posted May 26, 2012 Share Posted May 26, 2012 Hello everybody , I'm working with PHP , AJAX and jQuery to create dynamic full AJAX website that will be full seo friendly (it's very important for me) . For example , if I have url <a class="ajaxURL" href="www.mydomain.com/products/laptops/">Laptops</a> I can load this url conent using AJAX // We're using jQuery functions to make our lives loads easier $('a.ajaxUR').click(function(e) { href = $(this).attr("href"); //This function would get content from the server and insert it into the id="content" element $.ajax( { url:href; context:document.body, success:function(data) { $('#conentt').html(data); $('title').html(title); // dynamic change page title } }); //This is where we update the address bar with the 'url' parameter window.history.pushState('object', 'New Title', url); //This stops the browser from actually following the link e.preventDefault(); } It seems that if your javascript is enabled , it will load all conent with AJAX otherwise just simple use url normally , and search engines also can access this conent.So that do you think about this method of building full AJAX website ? Is it can be full seo friendly ? Quote Link to comment https://forums.phpfreaks.com/topic/263171-full-seo-friendly-ajax-website/ Share on other sites More sharing options...
smoseley Posted May 26, 2012 Share Posted May 26, 2012 Just be sure... if someone comes to that page from Google and has JS enabled, to properly load the AJAX experience. Quote Link to comment https://forums.phpfreaks.com/topic/263171-full-seo-friendly-ajax-website/#findComment-1348784 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.