Hello, I didn't find any topics on this, but thank you to tell me if there is any. I would like to know if you have ever considered proposing a redirection feature. Let's imagine I have an old category URL http://mynop.com/category/myoldACategory which is existing on many external websites. Now this myoldACategory is discontinued, ie unpublished and the user (and the search engine) gets a page not found. But I have a brand-new mynewBCategory which is near and could be interesting. I'd be happy in product/category administration to have a field to explicitly redirect to a product, category, or custom URL. Best regards.
Hello, I didn't find any topics on this, but thank you to tell me if there is any. I would like to know if you have ever considered proposing a redirection feature. Let's imagine I have an old category URL http://mynop.com/category/myoldACategory which is existing on many external websites. Now this myoldACategory is discontinued, ie unpublished and the user (and the search engine) gets a page not found. But I have a brand-new mynewBCategory which is near and could be interesting. I'd be happy in product/category administration to have a field to explicitly redirect to a product, category, or custom URL. Best regards.
Since v2.7 the URL was SEO optimized as ID-less URLs for products, categories, and manufacturers. Example: http://demo.nopcommerce.com/etnies-mens-digit-sneaker
I came across with a case where I had products published = 1, deleted=0 but available date greater that current date.
When external links point to these products the get a Not Found error. This is due to the variable bool showHidden = false is the default on Nop.Services.Catalog class ProductService method: public virtual IPagedList<Product> SearchProducts
and in the LoadAll store procedure you have this section:
IF @ShowHidden = 0 BEGIN SET @sql = @sql + ' AND p.Published = 1 AND pv.Published = 1 AND pv.Deleted = 0 AND (getutcdate() BETWEEN ISNULL(pv.AvailableStartDateTimeUtc, ''1/1/1900'') and ISNULL(pv.AvailableEndDateTimeUtc, ''1/1/2999''))' END
I removed AND (getutcdate() BETWEEN ISNULL(pv.AvailableStartDateTimeUtc, ''1/1/1900'') and ISNULL(pv.AvailableEndDateTimeUtc, ''1/1/2999''))'
and now if the product will be available later, the search engine are still crawling and indexing this product.
I would like to make a suggestion for consideration because i think this would be good for SEO reasons.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.