Page 1 of 1

XML Sitemap

Posted: Tue Dec 17, 2013 12:19 am
by rani_149
I have generated a sitemap (xml) and placed it in root folder of my php website. However when I try to see the same online, I cannot see the page. The website I am working on is a php website and I am a newbie to php. Should I be doing something that will make the page appear?

Mayura

Re: XML Sitemap

Posted: Tue Dec 17, 2013 12:42 am
by requinix
See what online? The sitemap file? Sure you uploaded it to the right place?
What do you see? A 404 page or something else? Can you upload any other type of file (like an image) and see that?

Re: XML Sitemap

Posted: Tue Dec 17, 2013 2:37 am
by rani_149
background for this project - I have just taken over this website newly, previous developer is not ready to help me...:( and I new to php (though I do have Programing background)

I have to add the site maps (HTML, php and XML) to this website. I made a test.php and added it to the root directory as you said. No, I cannot see it. It shows the following error in the browser
Not Found

The requested URL /en/test.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Yes, I have uploaded in the same place where the index.php and other files are placed.

Am I missing something? permissions, visibility ?

Re: XML Sitemap

Posted: Tue Dec 17, 2013 2:40 am
by requinix
"Root directory"?

You might simply be not uploading to the right location. Did you put it in the "en" directory?

Re: XML Sitemap

Posted: Tue Dec 17, 2013 3:10 am
by rani_149
Yes I did, under public_html->theme->root->en
Can I attach a screenshot here?

Re: XML Sitemap

Posted: Mon Dec 30, 2013 1:48 pm
by requinix
Yeah, the "root directory" is supposed to be the root directory of the entire website, not of the theme.

Put the files directly in public_html.

Re: XML Sitemap

Posted: Fri Jan 10, 2014 12:49 am
by anilkr
That's correct for uploading any file like xml site map or robots etc. you need to upload it into your website root directory to work it well without any problem and your website root directory is public_html.