Answer the question
In order to leave comments, you need to log in
How to replace %20 in url with -?
Good afternoon, tell me how to replace the characters% 20 with a dash?
The URL looks like this
site.ru/kazakhstan/Almaty%20Oblysy/Otegen%20Batyr.html /Otegen-Batyr.html but redirected to site.ru/kazakhstan/Almaty%20Oblysy/Otegen%20Batyr.html so as not to remake the database. Is it possible to do in htaccess without 301 redirect. Because there are many countries, regions and cities, or is it possible to do it in some other way?
Answer the question
In order to leave comments, you need to log in
If you are satisfied with a crutch, and you are not afraid that one day someone will curse you while supporting this project, then simply at the entry point, even before routing, replace "-" with "% 20" (or vice versa, I did not quite understand what exactly what you want).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question