Old URLs show new pages - strange!

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
JM6891
Forum Members
Forum Members
Posts: 150
Joined: Thu Mar 18, 2010 2:35 pm

Old URLs show new pages - strange!

Post by JM6891 »

Hi there,

I have a really really strange scenario...

We recently rebuilt a clients site using CMSMS. Their previous site was a bespoke php site.

When reviewing the Google Webmaster Tools, I noticed there were some Title tag duplications - between old pages from the old site and new pages on the cmsms site.

The thing is for these pages, no 301 redirects have been added from old pages to new ones, and no new pages have been set up in their place with the same page alias.

So, for example:

I have an old page url "http://www.site.com/view.php?id=1308&ac ... ld&page=21

When you visit this in the browser it displays a cmsms page on that URL, e.g. it might display the about us page, or the contact page. It doesn't redirect to a new page, it simply displays that page with this url as access. Sometimes it displays the content, sometimes it just displays the page with everything but main body text. This could cause duplicate content issues but I'm confused as to why this would happen in the first place.

There is no reference to view.php?id=1308&access=sold&page=21 in the database or in the .htaccess file - so how can the site be displaying one of the new pages for this url?

Furthermore, the CMSMS site went live on completely new hosting - so it can't be something set up at server level, can it? I've also looked in the control panel where the domain is held and can't seem to find anything in there. Any ideas any one has would be very much appreciated.

Thanks!
Last edited by Dr.CSS on Thu Jan 31, 2013 5:53 pm, edited 1 time in total.
Reason: Please use double quotes on fake links so they aren't clickable...
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Old URLs show new pages - strange!

Post by Rolf »

You use pretty url?
"...page=21" is probably enough to rewrite the url and open the page.
Try to disable pretty url and try again.

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
JM6891
Forum Members
Forum Members
Posts: 150
Joined: Thu Mar 18, 2010 2:35 pm

Re: Old URLs show new pages - strange!

Post by JM6891 »

Hi there,

Yes I use pretty urls. page=21 would be the page ID wouldn't it? How can I check the page ID within CMSMS so I can see if this is what it is doing?

Ideally I don't want to disable pretty urls as the site is live.

Thanks again
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Old URLs show new pages - strange!

Post by paulbaker »

Go to Content -> Pages and hover over a page name. The link will be something like

Code: Select all

editcontent.php?_sx_=7988cf4e&content_id=55&page=
So the ID in this case is 55.

Even easier if you're using OneEleven admin theme, it shows you the ID in a little popup when you hover over the page name.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Old URLs show new pages - strange!

Post by Rolf »

Add to the top of your html template just after <head>:

Code: Select all

{if isset($canonical)}<link rel="canonical" href="{$canonical}" />{elseif isset($content_obj)}<link rel="canonical" href="{$content_obj->GetURL()}" />{/if}
It will tell Google what the correct URL is. The old URL will disappear from Google in a short time resolving your problem.
Read more http://en.wikipedia.org/wiki/Canonical_link_element

grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “The Lounge”