cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.8 sitemap 404 error

Magento 1.8 sitemap 404 error

Hello!

I have: Magento 1.8.0 (I plan to upgrade, but a bit later), SSL certificate recently installed, the site moved to https. Shared hosting, Apache, PHP 5.6. 

I use Google sitemap generation and it goes OK, the sitemap is generated under the root folder. I see it in and can read it from console or any file commander. The attributes are 666, or 777 - no difference. However, when trying to access it from browser I get 404 error. Seems like magic to me. Every file in the folder is accessible and sitemap.xml is not. I added a rule to my .htaccess file to not use rewrite for sitemap.xml - it makes no difference. 

I've cleared the cache and rebuilt indices. I have only one store in the config and never had another. Both unsecure and secure paths are indicated as https://mysite.com/

Please help me, I'm totally lost. 

5 REPLIES 5

Re: Magento 1.8 sitemap 404 error

Hello @AlinaSob

 

Try to create manually 1 file eg.

 

1.xml and check with URL, you are able to access it.

 

if yes then rename it sitemap.xml and copy code to new xml and try it.

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Magento 1.8 sitemap 404 error

No, it gives 404 as well.

I have another site on the same hosting, in the next folder, it works fine there. So it's not a problem of global server config. 

Re: Magento 1.8 sitemap 404 error

Hello @AlinaSob

 

Try to rename .htaccess file and try it.


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Magento 1.8 sitemap 404 error

It starts an infinite redirect loop.

Re: Magento 1.8 sitemap 404 error

I found it! I inserted the rss rule to the wrong place. 

Thank you @Sunil Patel for your help!