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.
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
Offline
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
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
Offline
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.
Offline
I have got around the problem by using canonical tags.
Cheers
Offline