İlgili robots bu şekilde idi.
User-agent: *
Disallow: /
Allow: /index.php
Allow: /iletisim.php
Allow: /hakkimizda.php
Allow: /gizlilik.php
Allow: /question.php
Sitemap:
https://siteadi.net/sitemap.xml
htaccess ;
RewriteEngine On
# www eklemek için
RewriteCond %{HTTP_HOST} ^site.net$ [NC]
RewriteRule ^(.*)$ https://www.site.net/$1 [R=301,L]
# HTTPS zorunluluğu (isteğe bağlı ekleyin)
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://www.site.net/$1 [R=301,L]
# Soru sayfası yönlendirmesi
RewriteRule ^([a-zA-Z0-9-]+)$ question.php?slug=$1 [L,QSA]
# Soru ekleme sayfası
RewriteRule ^add_question.php$ add_question.php [L]
Buradaki sorun Disallow: / satırı. Bu komut, belirtilen Allow yolları dışında tüm sitenin indekslenmesini engelliyor.
User-agent: *
Disallow: /
Allow: /index.php
Allow: /iletisim.php
Allow: /hakkimizda.php
Allow: /gizlilik.php
Allow: /question.php
Edit: Başka bir sitenin yedeğini kurmak bu soruna neden olmaz.