Home › Forum › Problemi Vari con WP › robots.txt
-
AutorePost
-
-
19 Agosto 2012 alle 1:44 #22366Stecchino90Partecipante
ma quando uno installa wordpress è presente robots.txt?
Perchè se vado nella root non lo trovo, ma se digito miosito.com/robots.txt mi viene fuori
User-agent: *
Disallow: /wp-admin/
Disallow: /wp-includes/
Quindi c’è..ma non lo trovo…dove può essere?
Thanks!
-
19 Agosto 2012 alle 5:01 #97130EmmePartecipante
Se viene fuori evidentemente c’è, di lଠnon si scappa.
-
19 Agosto 2012 alle 12:42 #97138San PietroburgoPartecipante
Si crea dinamicamente quando serve (nel momento in cui viene visitato l’indirizzo).
Se hai intenzione di apportare modifiche o fare aggiunte; meglio uno script o plugin (cerca nel repository ufficiale) che lavori alla stessa maniera. Mettere il file statico nella root è possibile giacché, in questo caso, WordPress non lo genera più dinamicamente; ma questo tipo di approccio è obsoleto.
-
19 Agosto 2012 alle 14:05 #97140Stecchino90Partecipante
Vi spiego.il mio sito è identico a un importante catena di vendita..quindi per avere più popolarità devo superarla nel PG.
Sto ottimizzando tutto il SEO del mio sito e poi voglio ottimizzare anche il file robots.txt….
vorrei aggiungere questo:
Disallow: /wp-
Disallow: /wp-admin/
Disallow: /wp-includes/
Disallow: /wp-content/
Disallow: /cgi-bin/
Allow: /wp-content/uploads/
Disallow: /feed/
Disallow: /trackback/
Disallow: /comments/
Disallow: */feed/
Disallow: */trackback/
Disallow: */comments/
Disallow: /*?*
Disallow: /*?
Disallow: /tag/ (opzionale)
Disallow: /category/ (opzionale)
Sitemap: http://www.nomesito.com/sitemap.xml
Dite che con un plugin riuscirei a modificarlo?
-
19 Agosto 2012 alle 21:43 #97146Stecchino90Partecipante
up
-
20 Agosto 2012 alle 1:31 #97148Stecchino90Partecipante
Risolto installando wp-robots-txt.
Grazie lo stesso
-
22 Agosto 2012 alle 12:37 #97183TrotwoodPartecipante
@San Pietroburgo, che intendi con “obsoleto” quando parli di inserire a mano il robots.txt?
c’è qualche altra controindicazione nel farlo (oltre a quella di fare… sciocchezze) ?
-
22 Agosto 2012 alle 23:15 #97186San PietroburgoPartecipante
Obsoleto perché da tempo s’è passati dal file statico, posizionato nella root del dominio, alla creazione al volo, del robots.txt, nel momento che viene richiesto visitando l’url.
Non c’è una controindicazione, ma WordPress crea dinamicamente il file robots e quindi sarebbe meglio seguire il suo metodo.
In futuro si farà altrettanto con la sitemap; questa non sarà più un file statico nella root, ma verrà creata nel momento in cui si visita la sua url.
Per esempio, del noto plugin:
http://wordpress.org/extend/plugins/google-sitemap-generator/
Al momento nel repository di WordPress c’è la versione che crea il file statico, ma nel sito di chi sviluppa il plugin è disponibile una beta che opera dinamicamente.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.