V
V
Vladimir2020-11-21 21:23:30
htaccess
Vladimir, 2020-11-21 21:23:30

How to replace "+" with "space" in page address (via Htaccess)?

Please help!!

On the site, internal links are registered with the "+" symbol. And in fact there are spaces in the folder names. How to replace "+" with "%20"?

Let me explain))

Now the pages open normally like this - www.site.ru/article title/ (well, or www.site.ru/article%20title/ )

And in internal linking in links - www.site.ru/article+title/

And how to replace this "plus" with "space"?

Thank you very much in advance!!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-11-21
@ruspokerstarrr

RewriteRule ^(.*?)\+(.*) "/$1 $2" [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question