Robots.txt for WordPress when not in root directory -


If the WP installation is not in the root (can say that it is / in the news / as is) where the robots.txt file Go (root or installation folder) and what is the path to:

  Disallow: / wp-admin / disallow: / wp-include / disallow: / wp-content / plugins / or reject : Newslett / wp-admin / reject: newsletter / wp-includes / reject: newslett / wp-content / plugins /  

thanks!

For example, for your site under www.example.com The directory is accessible under / var / www / and your WordPress blog is under / var / www / newsite / , robots.txt By entering / var / www / and changing folders in:

  Disallow: / newsite / wp-admin / disallow: / newsite / wp-include / disallow: / Newsat / wp-content / plugins /  

why / newsite / wp-admin / and / var / www / newsite / wp-admin / for example? The directory is related to the URI, such as


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -