Pregunta

I have a running store with around 600 products and wanted to remove the HTML suffix from my URLs.

I removed the HTML in the config and reindexed. All HTML pages are being redirected to the non-HTML variants.

I have read online people are putting the 301 redirects manually in their .htaccess

e.g. RewriteRule ^index.php/?(.*).html$ /$1 [R=301,L]

But is this really necessary when I don't get 404s?

Is manual .htaccess 301 redirect necessary?

Any insight appreciated

Thanks

No hay solución correcta

Otros consejos

In theory when you updated the config magento should have created the redirects in the url rewrite db table. Therefore updating htacess is unnecessary.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top