Mobile app version of vmapp.org
Login or Join
Sue5673885

: Is it OK that I submitted sitemaps for www and no-www? I have submitted two sitemaps of the same website. One for www and one for no the www version of my website. Should I delete one of

@Sue5673885

Posted in: #Google #Sitemap

I have submitted two sitemaps of the same website. One for www and one for no the www version of my website.

Should I delete one of the 2 sitemaps on the URL with redirect? In that case I would leave the sitemap to version no-www.

Is anything else I should do?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sue5673885

1 Comments

Sorted by latest first Latest Oldest Best

 

@Angela700

Create a sitemap containing URLs for the non-www version of the site that you want indexed. Anyone who accesses the www version should get redirected to the non-www version of the same URL.

If your server is apache with mod_rewrite installed, you can modify your server configuration so it also contains the following lines:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ example.com/ [R=301,L]


That way, the redirect will happen very quickly if someone requests the www version of your site.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme