M
M
meucoz2022-01-13 11:53:36
htaccess
meucoz, 2022-01-13 11:53:36

How to make the described redirect?

Hello.
help me understand how to correctly redirect from pages of the form:
/video/nazvanie-video-509-6-skin-2-user
to this:
/video/nazvanie-video-509

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2022-01-13
@shambler81

purely according to

RewriteRule ^video/nazvanie\-video\-509\-6\-skin\-2\-user$ /video/nazvanie\-video\-509? [L,R=301]

Now about the regular season, you were shown the right example of what can be done.
However, there are not enough conditions for an exact answer.
1. can there be a name = "terminator-2" if yes, then it is desirable to send the whole list to the studio, because you will need to think about it.
in general, the name can meet both a dash and a number, and even nearby.
so let's give the whole list or more exact occurrences.
If you have a lot of different conditions, then let's have an excel file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question