Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Removed /index.php/ but sitemap includes index.php

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1173 Views
  • lightbeard
    Avatar
    Community Member
    1 Post

    Removed /index.php/ but sitemap includes index.php Link to this post

    Hi everyone,

    I know the index.php removal / mod_rewrite thing has been done to death across this forum! I have removed the index.php using .htaccess, but have an issue that the googlesitemap module is still including the index.php.

    My question is how do I remove the index.php from automatically showing up in the sitemap.xml? In theory it is not a major issue (the links with index.php still work), but it means the links are coming up on the Google results with index.php, which I don't like.

    Another question (related), is that the Google search is showing the date of the page creation on every page - taking up some of the meta description. Is there a way of removing this? (It seems like a Silverstripe thing as quite a lot of the pages under search term 'Silverstripe' have the same thing...)

    Thanks for your help

    Graham

  • sypou
    Avatar
    Community Member
    10 Posts

    Re: Removed /index.php/ but sitemap includes index.php Link to this post

    Graham,

    Can you show me the way you have removed the index.php from the .htaccess file? Cannot remove it...

    Thanks,

    Serge

  • greenpea
    Avatar
    Community Member
    19 Posts

    Re: Removed /index.php/ but sitemap includes index.php Link to this post

    I had the same problem and my .htaccess file was empty - no content at all.

    This thread http://www.silverstripe.org/installing-silverstripe/show/16895 sorted it out, now index.php no longer shows

  • sypou
    Avatar
    Community Member
    10 Posts

    Re: Removed /index.php/ but sitemap includes index.php Link to this post

    Dear lightbeard,

    Thank you for your answer. I've already fixed it... it was dealing with the mod_rewrite in which I had to change the None to All for the AllowOverride All...

    Sypou

    1173 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.