T
T
Turtle_Onni2021-01-07 05:43:52
htaccess
Turtle_Onni, 2021-01-07 05:43:52

How to remove extra characters in url using htaccess?

Hello!

There was a need to remove extra characters from the url and redirect to the correct url. For example /category/skfsdjlfj/games should be redirected to /category/games. Another option is to issue 404.

At the moment, such urls issue 200, the site is on WordPress.

How it is possible to implement given correctly through htaccess?

Thanks a lot for your help in advance.

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