I'm trying to submit my sitemap on my Google console but every time I add it, it keeps saying it couldn't fetch, I have uploaded my sitemap.xml
into my domain root directory but still Google is not seeing it. Please, how can I solve this issue, have been on this for the past two days and it's like I'm going in circles.
My sitemap is in the public_html
folder with name sitemap.xml
.
UPDATE#1: This is my directory structure:
/home/winnerrs
/public_html
/app
/bootstrap
/config
/database
/docker
/public
/resources
/routes
/storage
.htaccess
artisan
composer.json
composer.lock
docker-compose.yml
Dockerfile
package.json
phpunit.xml
README.md
readme.md
robots.txt
server.php
sitemap.xml
webpack.mix.js
UPDATE#2: This my .htaccess
file in the document root:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
/sitemap.xml
from your site does result in a 404 - so you do seem to have an issue with your site? (But when you submit a sitemap to GSC, you physically upload it to Google - it doesn't need to "fetch" it?) – MrWhite Dec 29 '18 at 13:21robots.txt
file located? Are you rewriting URLs to a subdirectory perhaps? (Maybe include the contents of your.htaccess
file in your question.) – MrWhite Dec 31 '18 at 0:05