Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 04-07-2014 03:19:08

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Non Existent URl redirects to home page??

Hi

I have a number of old urls listed by google that redirect to my home page, not a 404 page.

There is nothing in my htaccess that should be redirecting them.

They also redirect on the demo site:

https://kryptronic.com/index.php?app=cm … 46000.html

This is causing duplicate content issues.

Any Ideas??

Thanks
Rob


Rob

Offline

 

#2 04-07-2014 09:25:21

htw_simon
Member
From: UK
Registered: 11-20-2007
Posts: 83
Website

Re: Non Existent URl redirects to home page??

I've created a 404 page and redirect non existent products, categories and pages to that page using the following in ECOM_Cat.php/ ECOM_Prod.php/ CMS_Content.php:

//$this->CORE_Display->include_file('ecom','noitems.php');
$this->globals('core_display.suppress_skin',1); // SUPPRESS SKIN
header('HTTP/1.1 404 Not Found'); // CHANGE HEADER TO 404
readfile('http://www.yoururl.co.uk/404'); // DISPLAY 404 PAGE

Simon

Offline

 

#3 04-07-2014 09:33:20

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Non Existent URl redirects to home page??

Or, update to version 8.0.7 which handles all this for you out of the box (301s, 404s, etc).


Nick Hendler

Offline

 

#4 04-07-2014 10:58:32

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: Non Existent URl redirects to home page??

Nick

I am on component base 8.0.7 System/Store and 8.0.4 Website which is the latest and greatest.

It isn't a non existent product/category. It is a url to nothing and should redirect to a 404 page.

https://kryptronic.com/index.php?app=cm … THING-HERE

It seems any url with a non existent COREseourl parameter redirects to the homepage.

Rob


Rob

Offline

 

#5 04-09-2014 09:16:40

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Non Existent URl redirects to home page??

On version 8.0.7 I would expect the 404 handled in the CMS display function would recognize that page doesn't exist and do a 404 for it.  COREseourl is not a URL parameter used by the software, by the way.


Nick Hendler

Offline

 

#6 04-09-2014 09:23:46

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: Non Existent URl redirects to home page??

I have got around the problem by using canonical tags.

Cheers


Rob

Offline

 

Board footer