How to do a redirect in Prestashop?

Is there a website arthata.by on prestashop
On it a category of commodity arthata.by/module

Began to agitate the question. It seems to me that some people go to the page arthata.by/module no slash at the end /
And it 404 error

How to do a redirect? In htacceess? In most præstø? How to avoid duplicate pages for SEO?
July 2nd 19 at 17:01
2 answers
July 2nd 19 at 17:03
Solution
To begin with, that it just so happened that PrestaShop, usually the end of the page without the slash.
So check your modules and make sure that they did the page without the slash at the end.

If you still have to do with slash a specific static page, so to avoid duplicates, add .htaccess line: 301-wow (full) redirect to this page:
Redirect 301 /module /module/
and that this entry is not lost when you update the cache in file ../ваш_сайт/classes/Tools.php
locate the entry: fwrite($write_fd, "\n\n");(or similar, about 2500 line).
Below it insert:
fwrite($write_fd, "Redirect 301 /module /module/\n");


Update:
Came up with a more global and correct option using mod_rewrite:
in file ../ваш_сайт/classes/Tools.php
find the entry:
fwrite($write_fd, 'RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]'."\n\n");

after it insert:
fwrite($write_fd, "RewriteCond %{REQUEST_URI} ^/module$\n");
fwrite($write_fd, "RewriteRule .+ ".(Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://')."".$domain."/module/ [R=301,L]\n\n");

Updated .htaccess distortion switch "Optimizing Apache" in the "Advanced settings >> Performance"
July 2nd 19 at 17:05
better htacceess to do a redirect
do not you think that was
just remember that stay this file is generated by the machine
and if you turn off CNC and then turn it on - changes will be overwritten

Find more questions by tags HTMLPrestashop