Community

Forums » SEPHP Help and Tips

Sitemap How Does it Work?

    • 18 posts
    May 27, 2018 9:09 PM EDT

    Hi there,

    Does anyone have sorted out how to use the sitemap in Social Engine?

    I can see that there is a sitemap edit section in the Menu Editor, but I cannot find the related .xml file that should be generated.

    From the robots.txt I can see that there is a path for the sitemap which is linked to a index.php file that should generate an xml.


    Anyway, even using external sources online to generate sitemap the file .xml generate is basically empty.

    Does anyone know how to generate a sitemap from Social Engine.


    Google cannot recognise it as well.


    Please someone HELP!

    Thanks.

     

    • 3537 posts
    May 28, 2018 5:52 AM EDT

    The sitemap is here, https://community.socialengine.com/sitemap and here https://demo.socialengine.com/sitemap . It works in google for us but try https://community.socialengine.com/sitemap?format=xml&rewrite=1 if the original doesn't work. There are also free sitemap generators that have more pages that index. There might be plugins for it too, in the marketplace but you'll want to get certified plugins if there are any for this.

    • 18 posts
    May 28, 2018 10:24 PM EDT

    My website is https://121co.com

    And I can see from the robots.txt on the Server that the path for the sitemap is a index.php file that I assume should generate the sitemap.xml of the website.
    I tried several tools online, but for some reasons they generate a sitemap.xml file empty with no links, so I assume there must be some problems.

    I can edit the sitemap of the website from social engine in the Menu Editor section, but there is no explanation where this file can be found on the Server.

    So where can I find it? It seems like a menu from Social Engine back-end. I would like to know where the sitemap generated from the index.php resides on the server.

    • 3537 posts
    May 29, 2018 5:09 AM EDT

    Your sitemap works for me. https://121co.com/sitemap and the basic is blocked by a redirect. 

    • 18 posts
    May 29, 2018 10:51 PM EDT

    Ok thanks for the above response.

    I can understand it works but why cannot be indexed by google?

     

    What do you mean by the basic is blocked by a redirect?

     

    I don't understand.


    What is blocked and what is redirect?

    Thanks

    • 3537 posts
    May 30, 2018 6:39 AM EDT

    The xml version that google would use https://121co.com/index.php/sitemap is blocked by some redirect that sends it to the short url version https://121co.com/sitemap . Your host may be able to help with that.

    • 18 posts
    May 30, 2018 8:37 PM EDT

    If I submit to google both links you gave me would not work anyway, because it sees a html file and not a xml file.


    I have submitted the full link which is the sitemap path: sitemap?format=xml&rewrite=1 so in this way the submission works and Google sees the webpages I put in the Sitemap menu editor but nothing get indexed even though I allowed the googlebot from the robots.txt


    Does anyone have success in using sitemap with Social Engine platform?

    It should be a quite easy process but I wonder how other people do this procedure and make it working.


    Thanks

    • 3537 posts
    May 31, 2018 5:11 AM EDT

    It can only index public stuff. I did mention that there are free ones out there. https://www.xml-sitemaps.com/

    • 18 posts
    May 31, 2018 8:06 PM EDT

    Yes you did mentioned that, but as I said if I put the URL of my website still comes out as a result with an empty XML page with not links generated.


    Why is that?
    It must be something wrong with the robots.txt or Social Engine issues in configuration.

     

    I checked with my host server company and they don't have any restrictions with the sitemap or robots.txt so Google can access to the Server and Robots.txt file but the sitemap is not indexed and I have got an error from them.

     

    When we tested a sample of the URLs from your Sitemap, we found that some URLs were not accessible to Googlebot due to an HTTP status error. All accessible URLs will still be submitted.
    1
    HTTP Error: 404
    • 3537 posts
    June 1, 2018 5:37 AM EDT

    The sitemap works fine here, at our demo and at my own author site. I use the full url as I showed. You can see it's in xml format here, https://community.socialengine.com/sitemap?format=xml&rewrite=1 using that format and it works fine as a normal url at https://community.socialengine.com . You may want to get a plugin for it or use the sitemap generator I linked.

    • 18 posts
    June 3, 2018 4:34 AM EDT

    I understand what you are saying Donna but it doesn't work to be validated on Google.


    Why is that code in the .htaccesfile then?

    It seems to be messy. creating a xml file with index.php but then having this in my .htacces file.

    Why?

     

    <pre class="code"> # Get rid of index.php<br> RewriteCond %{REQUEST_URI} /index\.php<br> RewriteRule (.*) index.php?rewrite=2 [L,QSA]<br> <br> # Rewrite all directory-looking urls<br> RewriteCond %{REQUEST_URI} /$<br> RewriteRule (.*) index.php?rewrite=1 [L,QSA]</pre>
  • June 28, 2018 3:11 AM EDT