Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

EllenD
Advanced Member

United Kingdom
434 Posts

Posted - 01/26/2018 :  02:07:04  
Hi, In my store I have noticed that the 301 redirect does not seem to be working for products which no longer exist. For example, the page will show the message 'Sorry, this product is not currently available.' and seems to have a 404 return code when checked at https://monitorbacklinks.com/seo-tools/http-header-status-check

In includes I have this
$seodetailurls=TRUE;
$seocategoryurls=TRUE;
$detlinkspacechar="_";
$seocaturlpattern="/childrens/%s";
$seoprodurlpattern="/clothes/%s";
$seomanufacturerpattern="/brand/%s";
$seourlsthrow301=TRUE;
$usecategoryname=TRUE;

and in htacess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^mysite.co.uk
RewriteRule (.*) http://www.mysite.co.uk/$1 [R=301,L]
RewriteRule ^childrens/([^/.]*)/?$ /categories.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^clothes/([^/.]*)/?$ /products.php?cat=$1 [QSA,nc,L,B]
RewriteRule ^brand/([^/.]*)/?$ /products.php?man=$1 [QSA,nc,L,B]
RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B]
</IfModule>


Also I'm not sure I understand the 301 exactly - I always thought this was to redirect to another page, but I don't seem to have specified the replacement page anywhere. Please can you help / clarify?



Many thanks
Ellen

Edited by - EllenD on 01/26/2018 04:46:06

Andy
ECT Moderator

95440 Posts

Posted - 01/26/2018 :  02:38:07  
Hi Ellen

The 301 redirect tells the search engines that if it finds proddetail.php?prod=myproduct to redirect that permanently to /myproduct. If a product no longer exists there's no redirect as there's nothing to redirect it to so you will get a 404

Andy

Please feel free to review / rate our software

EllenD
Advanced Member

United Kingdom
434 Posts

Posted - 01/26/2018 :  04:45:46  
Thanks for the explanation Andy, that makes sense now!
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000