sayfayı yeniden olmadan adres çubuğuna url değiştirmek nasıl

0 Cevap php

Ben http://mysite.com/index.php.

Ve bir alt menü

Ama http://mysite.com/index.php, her isteği işlemek istiyorum, ve sadece Ajax isteği kullanarak içeriğini değiştirmek. Bu şekilde, site sadece içerik bölümünü yükler çok daha hızlı ve yönlendirmek kolaydır.

Sadece URL google edilir http://mysite.com/index.php göreceksiniz çünkü burada sorun, SEO ve ben About Us içeriğe http://mysite.com/about-us ilişkilendirmek istiyorum, {[(3) }] Products içeriği vs

I know I can do this with PHP just reading the URL and writing the Ajax on the fly, but doing so the whole page is going to be reloaded every time. Is there a way to do this without reloading the whole page? What I think I need is to have a regular anchor in the submenu, for exampel pointing to "http://mysite.com/contact-us" but when clicked, instead of opening this page, process the Ajax request.

Bu mümkün ise ve Google sağ, muhtemelen bu gibi siyah bir şapka görmek için gidiyor?

Regards Alex

0 Cevap