Page 1 of 1

[solved] Duplicate content

Posted: Thu Sep 17, 2009 11:28 am
by Capone
Hi!

Im running CMS Made Simple 1.5.4 "Carolina" and I have the following problem which seems like a simple problem to solve but I have spent a bunch of hours trying to fix this and haven't found any solution for this.

I'm using pretty url and the problem is that I have two url to the same page which is bad for SEO and I only want to make it one page, one url.

Problem:
I have set a page as as default and when I surf to www.example.com it shows my default page.
The problem is that in my "table of contents" the link to my default page is www.example.com/lang/my_default_page which gives it two links to the same page :(

I have tried to use Redirekt 301 in .httpaccess on my local test server.

Code: Select all

Redirect 301 / http://localhost//lang/my_default_page 

But it cant load the page and the url turns into:

Code: Select all

http://localhost//lang/my_default_pagelang/my_default_pagelang/my_default_pagel....
I have also tried to change the config.php to

Code: Select all

$config['root_url'] = 'http://localhost//lang/my_default_page'
but then it lost all the style sheets.

I hope you can help me with this because now I'm clueless  ???

Re: Duplicate content

Posted: Thu Sep 17, 2009 1:36 pm
by replytomk3
Why does

Code: Select all

http://localhost//lang/my_default_page
has two slashes //?

Re: Duplicate content

Posted: Fri Oct 09, 2009 10:58 am
by Capone
I have solved it by making a new default page and from that page make an automatic redirect with a redirect UDT: http://forum.cmsmadesimple.org/index.ph ... 87204.html