Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Duplicate page content flaw in SS3


Go to End


3 Posts   1225 Views

Avatar
lozhowlett

Community Member, 151 Posts

7 December 2012 at 12:44am

Hi everyone

I dont know why silverstripe is doign this

http://www.safari.co.uk/kenya/ - Works, perfect

http://www.safari.co.uk/kenya/index.html - Works, not so perfect! As this page doesnt exist and should be coming up with a 404 really instead of the kenya page? This is allowing google to see the page a duplicate content.

I presume this will be a huge SEO flaw in SS3!

Cheers

Avatar
lozhowlett

Community Member, 151 Posts

12 December 2012 at 11:28pm

bump... as this think this is critical for all SS sites!

Avatar
Bigfork

Community Member, 23 Posts

13 December 2012 at 12:06am

It's not SilverStripes fault, it assumes index.html is an action of /kenya so has no reason to do anything about it.

Unless you're linking to index.html, Google should never even bother to look for it so it wouldn't be a problem.

There are a few options if you want to get rid of it. You could get block *.html in robots.txt, use a rewrite in .htaccess to redirect any instances of *.html, add custom code to the controller to return a 404 if the last URL segment contains .html or use the canonical meta tag to avoid any duplicate content issues.