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
XML Sitemap
Moderator: General Moderators
Re: XML Sitemap
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?
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
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 ?
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
"Root directory"?
You might simply be not uploading to the right location. Did you put it in the "en" directory?
You might simply be not uploading to the right location. Did you put it in the "en" directory?
Re: XML Sitemap
Yes I did, under public_html->theme->root->en
Can I attach a screenshot here?
Can I attach a screenshot here?
Re: XML Sitemap
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.
Put the files directly in public_html.
Re: XML Sitemap
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.