R
R
Ruslan Banochkin2015-11-30 11:48:55
htaccess
Ruslan Banochkin, 2015-11-30 11:48:55

CNC changed, how to redirect from html to without it?

I have a blog on WordPress, where earlier html was forcibly added to the articles at the end.
Now we need to remove it. For example, if earlier the link to the article looked like this:

site.ru/category/article.html

That now looks like this:
website.ru/category/article/

How can I make a redirect so that if someone accidentally follows an old format link with html at the end, then they are redirected in the right direction? And be sure to substitute a slash at the end.
Also, sometimes there are links with html and a slash at the end. Approximately like this:
website.ru/category/article.html/

Rarely, but it happens. Here it would also be transferred to site.ru / category / article /.
Help me please. The second day spent in Google did not help, various generators are also not suitable.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question