• 09-08-2021, 00:51:09
    #1
    PREMIUM SEO
    Yoast'ın kronik sorunlarından bir tanesidir. Wordpress ve Yoast eklentisi düzgün kurulsa da sunucudan dolayı Sitemap.xml oluşturulamıyor. NGINX sunucularda kural ekleyerek bu sorun çözülebilir.
    İlgili kurallar:
    # Rewrites for Yoast SEO XML Sitemap
    rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
    rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
    Kuralları sunucunuzda çalıştırdığınızda sorun ortadan kalkacaktır. Kuralları daha detaylı halini de çalıştırabilirsiniz.
    #Yoast SEO Sitemaps
    location ~ ([^/]*)sitemap(.*).x(m|s)l$ {
      ## this rewrites sitemap.xml to /sitemap_index.xml
      rewrite ^/sitemap.xml$ /sitemap_index.xml permanent;
      ## this makes the XML sitemaps work
      rewrite ^/([a-z]+)?-?sitemap.xsl$ /index.php?yoast-sitemap-xsl=$1 last;
      rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
      rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
      ## The following lines are optional for the premium extensions
      ## News SEO
      rewrite ^/news-sitemap.xml$ /index.php?sitemap=wpseo_news last;
      ## Local SEO
      rewrite ^/locations.kml$ /index.php?sitemap=wpseo_local_kml last;
      rewrite ^/geo-sitemap.xml$ /index.php?sitemap=wpseo_local last;
      ## Video SEO
      rewrite ^/video-sitemap.xsl$ /index.php?yoast-sitemap-xsl=video last;
    }
  • 09-08-2021, 01:12:24
    #2
    Altın değerinde bir paylaşım yapmışsın hocam yine.
  • 09-08-2021, 01:23:39
    #3
    PREMIUM SEO
    WobSeo adlı üyeden alıntı: mesajı görüntüle
    Altın değerinde bir paylaşım yapmışsın hocam yine.
    Teşekkürler hocam hatalara denk geldikçe paylaşıyoruz başkasında olursa daha hızlı çözsün diye.