SEO: redirect products or categories (probably discontinued) to other pages

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
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.
10 years ago
zar wrote:
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
10 years ago
Thanks, but that's not exactly my question.
I would like to redirect some discontinued products or categories to others available product.
10 years ago
zar wrote:
Thanks, but that's not exactly my question.
I would like to redirect some discontinued products or categories to others available product.

Sorry, but I completely misunderstood you :((. What you want is not available out off the box. It would require some customization work.
10 years ago
This is quite simple using http://www.iis.net/downloads/microsoft/url-rewrite

I use the custom sql provider http://www.iis.net/learn/extensions/url-rewrite-module/using-custom-rewrite-providers-with-url-rewrite-module

I then just update my table with the old & new url.
10 years ago
Thanks but I'm looking for something usable in the back-office for the shop's manager.
Best regards.
10 years ago
It kind of is.
You only have to add a page and radgrid to the admin panel. Connect it to your new table and you're done.
10 years ago
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.