Page 1 of 1
How to use my own sitemap.xml in opencart?
Posted: Mon May 13, 2013 3:49 am
by dpol215
I uploaded my own generated sitemap.xml file to my public..html root directory for my site and I cannot see the page when I visit
http://www.mydomain.com/sitemap.xml .
I followed instructions from older thread topic to comment out the rewrite condition that points to the sitemap file that opencart comes with but I had no success and
http://www.mydomain.com/sitemap.xml still shows a blank page:
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
Please help

Re: How to use my own sitemap.xml in opencart?
Posted: Mon May 13, 2013 5:33 am
by victorj
open your .htaccess
find:
Code: Select all
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
replace with:
Code: Select all
RewriteBase /
# RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
now your uploaded sitemap should be accessible
Re: How to use my own sitemap.xml in opencart?
Posted: Mon May 13, 2013 6:24 am
by dpol215
As I stated in my intro I already tried that.
I did this:
find:
Code: Select all
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
replaced with:
Code: Select all
###RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
This did not work! How can I fix this?
Re: How to use my own sitemap.xml in opencart?
Posted: Mon May 13, 2013 6:27 am
by dpol215
I'm sorry nevermind. I had the wrong line commented out. It works fine. Thank you.
Re: How to use my own sitemap.xml in opencart?
Posted: Wed Aug 14, 2019 5:35 pm
by shananpk

It works fine. Thank you.
Re: How to use my own sitemap.xml in opencart?
Posted: Fri Oct 09, 2020 2:29 am
by ahimanshu
victorj wrote: ↑Mon May 13, 2013 5:33 am
open your .htaccess
find:
Code: Select all
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
replace with:
Code: Select all
RewriteBase /
# RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
now your uploaded sitemap should be accessible
Thanks work for me.