Page 1 of 1

Wrong path for sitemap.xml

Posted: Mon Sep 29, 2008 4:15 pm
by gfxinternetservices
I tried generating an XML sitemap file via the administration panel, however I received a denied access to the path error.

Originally the website's development location was referenced in a different location. Then once it was in the production stage, it was moved to an alternate folder / domain. It seems that it has the previous folder logged versus what appears under the "Store URL" under "Configure" > "Store".

Any idea where I can modify the path?

Thanks.

Re: Wrong path for sitemap.xml

Posted: Mon Sep 29, 2008 5:10 pm
by jmestep
The only place I can think of checking is when you click to generate the sitemap.xml. It normally goes into the root of the site and the sitemap name is one of the input boxes when you go to generate the site. Make sure that doesn't have a folder specified.

Re: Wrong path for sitemap.xml

Posted: Mon Sep 29, 2008 5:39 pm
by gfxinternetservices
Thanks for the response Judy.

There is not folder specified in the "SiteMap File Name" input box (assuming that's what you were referring to). Just to clarify, let's say the website was first setup under website-ac7.com and then later was changed to just website.com. Well the control panel I use (Helm 3), creates a folder by the website address. So right now, when I create sitemap.xml, it's trying to place it under d:\website-ac7.com\wwwroot\SiteMap.xml instead of d:\website.com\wwwroot\SiteMap.xml

Re: Wrong path for sitemap.xml

Posted: Tue Sep 30, 2008 6:53 am
by AbleMods
Look for an existing sitemap.xml file and delete it if it exists. Then try to create one.

If it succeeds, some incorrect permissions were copied over when the site was moved to the new location.

If it still fails, permissions are not correct on your new location. Contact your hosting provider and request the permissions be corrected on all your site files.

Either way, you're bound to encounter other issues as well if the permissions were wrong. I'm guessing the file permissions on your site didn't get reset properly when the site was moved.

Re: Wrong path for sitemap.xml

Posted: Tue Sep 30, 2008 8:38 am
by Shopping Cart Admin
Hello All,

I've seen this before in a site migration, however I cannot remember off the top of my head where the physical directory path is stored.

Re: Wrong path for sitemap.xml

Posted: Tue Sep 30, 2008 9:47 am
by gfxinternetservices
I figured it out. The setting is under the "ac_StoreSettings" table. On row 67, I edited the FieldName: CommonSiteMap_SiteMapDataPath. Once updated I was able to generate the sitemap.

Re: Wrong path for sitemap.xml

Posted: Tue Sep 30, 2008 9:48 am
by Shopping Cart Admin
Hello,

If you open the table ac_StoreSettings you'll find a row which has the physical path for the xml feeds, which needs to be updated to the new directory.

Re: Wrong path for sitemap.xml

Posted: Tue Sep 30, 2008 9:52 am
by AbleMods
doh!

Why store the physical path??? Nothing else stores the physical path does it??

Re: Wrong path for sitemap.xml

Posted: Tue Sep 30, 2008 10:04 am
by gfxinternetservices
The YahooShopping_FeedDataPath under the same table also references the physical path. I believe that's it.

Re: Wrong path for sitemap.xml

Posted: Tue Sep 30, 2008 10:54 am
by AbleMods
gfxinternetservices wrote:The YahooShopping_FeedDataPath under the same table also references the physical path. I believe that's it.
If one marketing feed does it, all the feeds do it. They all use the same class for storing the settings. Checked my ac_StoreSettings and that is the case.

So you're going to want to check for those as well, they'll need to be adjusted too.

Learn something new every day :roll: