Google cannot access my robots.txt!
-
Hi folks!
I have a WP site installed in a directory called /wp.
I followed the official tutorial to move site from sub-directory to root directory by changing the wp path and adding a index.php file in root directory which includes all necessary files.
Now, I have some troubles indexing my WordPress site on google webmaster tools. I added my site with this first version of .htaccess<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
Now, I tried to add these lines to .htaccess file, but Google still does not index my site.
# BOT SETTINGS SetEnvIfNoCase User-Agent .*google.* search_robot SetEnvIfNoCase User-Agent .*yahoo.* search_robot SetEnvIfNoCase User-Agent .*bot.* search_robot SetEnvIfNoCase User-Agent .*ask.* search_robot Order Deny,Allow #Deny from All Allow from env=search_robot
Where is the error?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Google cannot access my robots.txt!’ is closed to new replies.