XML Sitemap

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
rani_149
Forum Newbie
Posts: 6
Joined: Mon Dec 16, 2013 11:51 pm

XML Sitemap

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: XML Sitemap

Post 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?
rani_149
Forum Newbie
Posts: 6
Joined: Mon Dec 16, 2013 11:51 pm

Re: XML Sitemap

Post 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 ?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: XML Sitemap

Post by requinix »

"Root directory"?

You might simply be not uploading to the right location. Did you put it in the "en" directory?
rani_149
Forum Newbie
Posts: 6
Joined: Mon Dec 16, 2013 11:51 pm

Re: XML Sitemap

Post by rani_149 »

Yes I did, under public_html->theme->root->en
Can I attach a screenshot here?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: XML Sitemap

Post 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.
anilkr
Forum Newbie
Posts: 10
Joined: Tue Jan 07, 2014 6:31 am

Re: XML Sitemap

Post 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.
Post Reply