How to edit sitemap? Index.php/ not working

    • 6 posts
    August 14, 2018 3:01 AM EDT

    Go to https://zoolpool.com/index.php/sitemap?format=xml&rewrite=1

    1st link is https://zoolpool.com/index.php/

    It doesn't work. If '/' is removed after index.php, it works. So there is error.

    Also I want to remove the 2nd link https://zoolpool.com/index.php/members as it is not for public access.

    Also I want to remove member link from https://zoolpool.com/sitemap

    I am getting error message in Google search console for these two links.

    Can anyone tell me how to edit the sitemap.

    • Moderator
    • 6923 posts
    August 14, 2018 4:57 AM EDT

    You'll want a plugin if you want to manage the sitemap. Maybe this one, https://www.socialengine.com/marketplace/app/ultimate-seo-sitemaps-plugin

    • 6 posts
    August 14, 2018 5:23 AM EDT

    I understand the link given is helpful.

    But isn't it a bug in socialengine coding which is used to generate a sitemap.

    Instead of writing index.php/ it should have written index.php

    And it should have eliminated links which has been denied public access.

    • Moderator
    • 6923 posts
    August 14, 2018 6:06 AM EDT

    It's not a bug as it works here https://community.socialengine.com/index.php/sitemap?format=xml&rewrite=1 . It is something in your server. You can ask the host for guidance on how to resolve the trailing slash issue though.

    • 6 posts
    August 14, 2018 6:21 AM EDT

    Ok I will ask the host for trailing slash issue.

    For temporary basis I have found the solution.

    Instead of using https://zoolpool.com/index.php/sitemap?format=xml&rewrite=1

    I will use https://zoolpool.com/sitemap?format=xml&rewrite=1

    i.e. by removing index.php from sitemap url.

     

    What about eliminating links in sitemap which have been denied public issue. Can it be requested as a new feature.

    • 6 posts
    August 14, 2018 5:02 PM EDT

    In https://community.socialengine.com/sitemap?format=xml&rewrite=1 also showing same problem.

    2nd link is https://community.socialengine.com/members

    But /members access is denied to public & search engine. Google will show error for this.

    • Moderator
    • 6923 posts
    August 15, 2018 5:06 AM EDT

    You can add a feature request for improvements in the feature request section. Please see the stickied post there for how to post a feature request so that it isn't rejected for not having the details needed.

    • 6 posts
    August 15, 2018 6:19 AM EDT
    Donna said:

    It's not a bug as it works here https://community.socialengine.com/index.php/sitemap?format=xml&rewrite=1 . It is something in your server. You can ask the host for guidance on how to resolve the trailing slash issue though.

    For trailing slash issue I checked in other socialengine php based sites. There also it's not working. For example

    http://www.example.com/index.php/

    If you remove '/' it will work.

    I think it's problem with .htaccess file code somewhere

    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /

    # Get rid of index.php
    RewriteCond %{REQUEST_URI} /index\.php
    RewriteRule (.*) index.php?rewrite=2 [L,QSA]

    # Rewrite all directory-looking urls
    RewriteCond %{REQUEST_URI} /$
    RewriteRule (.*) index.php?rewrite=1 [L,QSA]

    I am not a tech guy, so don't know exactly.


    This post was edited by shashwat at August 15, 2018 9:17 AM EDT
    • Moderator
    • 6923 posts
    August 15, 2018 8:33 AM EDT

    It can be from those server settings. It works for us. It may need an htaccess change, I don't know but that would be per site. 

    • Moderator
    • 6923 posts
    August 15, 2018 8:34 AM EDT

    Also, did you get permission from that site owner to post their site here? If not, please remove the link.